DeviceRequestGenerator
Deprecated
This class is deprecated, use DeviceRequest instead.
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.
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, unlockReason: UnlockReason = UnlockReason.Unspecified): DeviceRequestGenerator
Adds a request for a document and which data elements to request.