VerifiedMdoc

data class VerifiedMdoc(val doctype: String, val claims: JsonObject, val deviceSignedClaims: JsonObject?, val issuer: String, val trustAnchor: String, val validFrom: Instant, val validUntil: Instant, val deviceAuth: String, val statusList: VerifiedMdoc.StatusListReference?)(source)

A verified mdoc, as a ProximityReaderSession received it.

Constructors

Link copied to clipboard
constructor(doctype: String, claims: JsonObject, deviceSignedClaims: JsonObject?, issuer: String, trustAnchor: String, validFrom: Instant, validUntil: Instant, deviceAuth: String, statusList: VerifiedMdoc.StatusListReference?)

Types

Link copied to clipboard
data class StatusListReference(val uri: String, val index: Long)

Where the mdoc's status is published: a Token Status List at uri, and the mdoc's index in it.

Properties

Link copied to clipboard
val claims: JsonObject

The disclosed elements: namespace → identifier → value, byte strings as base64 and dates as their text.

Link copied to clipboard

"signature" or "mac".

Link copied to clipboard
val deviceSignedClaims: JsonObject?

Any device-signed elements.

Link copied to clipboard

The mdoc's document type.

Link copied to clipboard

The document signer certificate's subject common name.

Link copied to clipboard

The MSO's status list reference, unchecked: check it before relying on the document.

Link copied to clipboard

The common name of the IACA it chains to.

Link copied to clipboard

When the mdoc's signed data (its MSO) became valid.

Link copied to clipboard

When it expires.