MobileSecurityObject

An object used to represent data parsed from MobileSecurityObject CBOR as specified in ISO/IEC 18013-5 section 9.1.2 Issuer data authentication

Properties

Link copied to clipboard
lateinit var deviceKey: EcPublicKey

The mdoc authentication public key set in the MobileSecurityObject CBOR.

Link copied to clipboard

The AuthorizedDataElements portion of the keyAuthorizations within DeviceKeyInfo. Is null if it does not exist in the MSO.

Link copied to clipboard

Gets the AuthorizedNameSpaces portion of the keyAuthorizations within DeviceKeyInfo. Is null if it does not exist in the MSO.

Link copied to clipboard

Gets extra info for the mdoc authentication public key as part of the KeyInfo portion of the DeviceKeyInfo. Is null if it does not exist in the MSO.

Link copied to clipboard

The digest algorithm set in the MobileSecurityObject CBOR.

Link copied to clipboard
lateinit var docType: String

The document type set in the MobileSecurityObject CBOR.

Link copied to clipboard
var expectedUpdate: Instant?

The timestamp at which the issuing authority infrastructure expects to re-sign the MSO, if provided in the MobileSecurityObject CBOR, else null.

Link copied to clipboard
lateinit var signed: Instant

The timestamp at which the MSO signature was created, as set in the MobileSecurityObject CBOR.

Link copied to clipboard
lateinit var validFrom: Instant

The timestamp before which the MSO is not yet valid, as set in the MobileSecurityObject CBOR.

Link copied to clipboard
lateinit var validUntil: Instant

The timestamp after which the MSO is no longer valid, as set in the MobileSecurityObject CBOR.

Link copied to clipboard

The set of namespaces provided in the ValueDigests map within the MobileSecurityObject CBOR.

Link copied to clipboard
lateinit var version: String

The version string set in the MobileSecurityObject CBOR.

Functions

Link copied to clipboard
fun getDigestIDs(namespace: String): Map<Long, ByteArray>?

Gets a non-empty mapping between a DigestID and a Digest for a particular namespace, as set in the ValueDigests map within the MobileSecurityObject CBOR.

Link copied to clipboard
fun parse(encodedMobileSecurityObject: ByteArray)