DocumentGenerator

class DocumentGenerator(docType: String, encodedIssuerAuth: ByteArray, encodedSessionTranscript: ByteArray)

Deprecated

Deprecated, use DeviceResponse instead

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, eReaderKey: EcPublicKey, unlockReason: Reason = Reason.Unspecified): DocumentGenerator

Sets device-signed data elements to return.

Link copied to clipboard
suspend fun setDeviceNamespacesSignature(dataElements: NameSpacedData, secureArea: SecureArea, keyAlias: String, unlockReason: Reason): 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)