MdocDocument

data class MdocDocument(val docType: String, val issuerAuth: CoseSign1, val issuerNamespaces: IssuerNamespaces, val deviceAuth: DeviceAuth, val deviceNamespaces: DeviceNamespaces, val errors: Map<String, Map<String, Int>>, issuerNamespaceDigests: Map<String, Map<String, ByteString>>? = null)

A document in a DeviceResponse.

Constructors

Link copied to clipboard
constructor(docType: String, issuerAuth: CoseSign1, issuerNamespaces: IssuerNamespaces, deviceAuth: DeviceAuth, deviceNamespaces: DeviceNamespaces, errors: Map<String, Map<String, Int>>, issuerNamespaceDigests: Map<String, Map<String, ByteString>>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

a structure with the device signed signature or MAC.

Link copied to clipboard

the device-signed data elements.

Link copied to clipboard

the type of the document, e.g. "org.iso.18013.5.1.mDL".

Link copied to clipboard

the errors in the document.

Link copied to clipboard

the issuer-signed Mobile Security Object.

Link copied to clipboard

Convenience property for accessing the X.509 certificate chain for the issuer signature from issuerAuth.

Link copied to clipboard

the issuer-signed data elements.

Link copied to clipboard

Convenience property for accessing the MobileSecurityObject from issuerAuth.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Generates CBOR compliant with the CDDL for Document according to ISO 18013-5.