Class DeviceRequestBuilder
Builds the ISO/IEC 18013-5 DeviceRequest that travels over the W3C Digital Credentials
API (ISO/IEC 18013-7 Annex C): one docRequest, no readerAuth, the itemsRequest tag-24 wrapped
so its bytes stay stable under the digest that binds the session.
public static class DeviceRequestBuilder
- Inheritance
-
DeviceRequestBuilder
- Inherited Members
Methods
Build(string, string, IReadOnlyList<string>, bool)
Builds a single-document request for the named elements.
public static byte[] Build(string docType, string nameSpace, IReadOnlyList<string> elementIdentifiers, bool intentToRetain)
Parameters
docTypestringThe requested document type, e.g.
eu.europa.ec.av.1.nameSpacestringThe namespace the elements live in.
elementIdentifiersIReadOnlyList<string>The elements to request. Requesting is the list itself.
intentToRetainboolISO/IEC 18013-5's IntentToRetain flag, applied to every requested element: whether the verifier intends to store the element after verifying it. This is NOT the value being requested; reading it as one inverts the question the request asks.
Returns
- byte[]