Table of Contents

Class DeviceRequestBuilder

Namespace
Tessio.Verifier.Core.Mdoc
Assembly
Tessio.Verifier.Core.Mdoc.dll

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

docType string

The requested document type, e.g. eu.europa.ec.av.1.

nameSpace string

The namespace the elements live in.

elementIdentifiers IReadOnlyList<string>

The elements to request. Requesting is the list itself.

intentToRetain bool

ISO/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[]