DocumentGenerator
class DocumentGenerator(docType: String, encodedIssuerAuth: ByteArray, encodedSessionTranscript: ByteArray)
Helper class for building Document CBOR as specified in ISO/IEC 18013-5:2021 section 8.3.
Parameters
docType
the document type.
encodedIssuerAuth
bytes of IssuerAuth CBOR, as per ISO/IEC 18013-5:2021 section 9.1.2.4.
encodedSessionTranscript
bytes of SessionTranscript CBOR as per ISO/IEC 18013-5:2021 section 9.1.5.1.
Functions
Link copied to clipboard
suspend fun setDeviceNamespacesMac(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, eReaderKey: EcPublicKey, unlockReason: UnlockReason = UnlockReason.Unspecified): DocumentGenerator
Sets device-signed data elements to return.
Link copied to clipboard
suspend fun setDeviceNamespacesSignature(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, unlockReason: UnlockReason): DocumentGenerator
Sets device-signed data elements to return.
Link copied to clipboard
Sets issuer-signed data elements to return.