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.

Constructors

Link copied to clipboard
constructor(docType: String, encodedIssuerAuth: ByteArray, encodedSessionTranscript: ByteArray)

Functions

Link copied to clipboard

Generates CBOR.

Link copied to clipboard
suspend fun setDeviceNamespacesMac(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, keyUnlockData: KeyUnlockData?, eReaderKey: EcPublicKey): DocumentGenerator

Sets device-signed data elements to return.

Link copied to clipboard
suspend fun setDeviceNamespacesSignature(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, keyUnlockData: KeyUnlockData?): DocumentGenerator

Sets device-signed data elements to return.

Link copied to clipboard

Sets document errors.

Link copied to clipboard

Sets issuer-signed data elements to return.

fun setIssuerNamespaces(issuerNamespaces: IssuerNamespaces)