DeviceRequestGenerator

class DeviceRequestGenerator(val encodedSessionTranscript: ByteArray)

Helper class for building DeviceRequest CBOR as specified in ISO/IEC 18013-5:2021 section 8.3 Device Retrieval.

This class supports requesting data for multiple documents in a single presentation.

Parameters

encodedSessionTranscript

the bytes of SessionTranscript.

Constructors

Link copied to clipboard
constructor(encodedSessionTranscript: ByteArray)

Properties

Functions

Link copied to clipboard
fun addDocumentRequest(docType: String, itemsToRequest: Map<String, Map<String, Boolean>>, requestInfo: Map<String, ByteArray>?, readerKey: EcPrivateKey?, signatureAlgorithm: Algorithm, readerKeyCertificateChain: X509CertChain?, zkSystemSpecs: List<ZkSystemSpec> = emptyList()): DeviceRequestGenerator
suspend fun addDocumentRequest(docType: String, itemsToRequest: Map<String, Map<String, Boolean>>, requestInfo: Map<String, ByteArray>?, readerKeySecureArea: SecureArea, readerKeyAlias: String, readerKeyCertificateChain: X509CertChain, keyUnlockData: KeyUnlockData?): DeviceRequestGenerator

Adds a request for a document and which data elements to request.

Link copied to clipboard

Builds the DeviceRequest CBOR.