MdocDocument

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

A document in a DeviceResponse.

Note that verification of this document (via DeviceResponse.verify) does not check X.509 CRL/OCSP revocation on issuerCertChain or MSO revocation via MobileSecurityObject.revocationStatus; the caller is expected to check issuer trust, certificate revocation, and MSO revocation status (e.g., via RevocationStatus.check) separately when required.

Constructors

Link copied to clipboard
constructor(docType: String, issuerAuth: CoseSign1, issuerNamespaces: IssuerNamespaces, deviceAuth: DeviceAuth?, deviceNamespaces: DeviceNamespaces, errors: Map<String, Map<String, Int>>, docRequestIds: List<Int>? = null, 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, or null for a non-key-bound mdoc.

Link copied to clipboard

the device-signed data elements.

Link copied to clipboard

optional list of DocRequest indices in DeviceRequest.docRequests that this document responds to, or null if not specified.

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.

Link copied to clipboard

List of verified transaction data which was sent in the request

Link copied to clipboard

Transaction response indexed by TransactionType.identifier

Functions

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

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