MpzPass
data class MpzPass(val uniqueId: String = UUID.randomUUID().toString(), val version: Long = 0, val updateUrl: String? = null, val userAuthenticationRequired: Boolean = false, val readerIdentifiers: List<ByteString> = emptyList(), val shareable: Boolean = false, val name: String? = null, val typeName: String? = null, val cardArt: ByteString? = null, val isoMdoc: List<MpzPassIsoMdoc> = emptyList(), val sdJwtVc: List<MpzPassSdJwtVc> = emptyList(), val issuerCertificateChain: X509CertChain? = null)
Represents a Multipaz .mpzpass credential container.
This format provides a highly portable, lightweight mechanism to exchange low-assurance verifiable credentials (such as transit passes or movie tickets) where strict hardware device-binding is unnecessary.
See this page for the definition of the Multipaz Pass file format.
Throws
Constructors
Link copied to clipboard
constructor(uniqueId: String = UUID.randomUUID().toString(), version: Long = 0, updateUrl: String? = null, userAuthenticationRequired: Boolean = false, readerIdentifiers: List<ByteString> = emptyList(), shareable: Boolean = false, name: String? = null, typeName: String? = null, cardArt: ByteString? = null, isoMdoc: List<MpzPassIsoMdoc> = emptyList(), sdJwtVc: List<MpzPassSdJwtVc> = emptyList(), issuerCertificateChain: X509CertChain? = null)
Properties
Link copied to clipboard
The ISO mDoc credentials in the payload.
Link copied to clipboard
The X.509 certificate chain of the pass issuer, if the pass is signed.
Link copied to clipboard
A list of reader identifiers for reader authentication.
Link copied to clipboard
The SD-JWT VC credentials in the payload.
Link copied to clipboard
whether platform user authentication is required to present the pass.
Functions
Link copied to clipboard
suspend fun toDataItem(signingKey: AsymmetricKey? = null, issuerCertificateChain: X509CertChain? = null, compressionLevel: Int = 5): DataItem