MobileSecurityObject

data class MobileSecurityObject(val version: String, val docType: String, val signedAt: Instant, val validFrom: Instant, val validUntil: Instant, val expectedUpdate: Instant?, val digestAlgorithm: Algorithm, val valueDigests: Map<String, Map<Long, ByteString>>, val deviceKey: EcPublicKey, val deviceKeyAuthorizedNamespaces: List<String> = emptyList(), val deviceKeyAuthorizedDataElements: Map<String, List<String>> = emptyMap(), val deviceKeyInfo: Map<Long, DataItem> = emptyMap(), val revocationStatus: RevocationStatus? = null)

Mobile Security Object according to ISO/IEC 18013-5.

Constructors

Link copied to clipboard
constructor(version: String, docType: String, signedAt: Instant, validFrom: Instant, validUntil: Instant, expectedUpdate: Instant?, digestAlgorithm: Algorithm, valueDigests: Map<String, Map<Long, ByteString>>, deviceKey: EcPublicKey, deviceKeyAuthorizedNamespaces: List<String> = emptyList(), deviceKeyAuthorizedDataElements: Map<String, List<String>> = emptyMap(), deviceKeyInfo: Map<Long, DataItem> = emptyMap(), revocationStatus: RevocationStatus? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the public part of the key the MSO is bound to.

Link copied to clipboard

data elements for which the mdoc is authorized to return data elements for.

Link copied to clipboard

namespaces the mdoc is authorized to returned device signed data elements for.

Link copied to clipboard

additional information about the device key.

Link copied to clipboard

the digest algorithm used for the value digests.

Link copied to clipboard

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

Link copied to clipboard

the point in time the MSO is expected to be updated, if available.

Link copied to clipboard

defines how to check if this document is revoked.

Link copied to clipboard

the point in time the MSO was signed.

Link copied to clipboard

the point in time the MSO is valid from.

Link copied to clipboard

the point in time the MSO is valid until.

Link copied to clipboard
Link copied to clipboard

the version, e.g. 1.0 or 1.1.

Functions

Link copied to clipboard

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