AltIdQrPayload

data class AltIdQrPayload(val transactionId: String, val mdocGeneratedNonce: String, val validFrom: Long, val validTo: Long, val docType: String?, val claims: Map<String, Map<String, Any?>>, val documentBytes: ByteArray)

The decoded content of an AltID SignedQR (typ = "AltID-1.0"), assembled from one or more scanned QR frames.

This is the result of decoding only — the assembled frames have been parsed into their structured fields and the embedded mdoc Document has been read out into claims. It does not perform any cryptographic validation (issuer signature, certificate-chain trust, device signature, status list, replay). Callers that need proof of authenticity must verify documentBytes separately.

Constructors

Link copied to clipboard
constructor(transactionId: String, mdocGeneratedNonce: String, validFrom: Long, validTo: Long, docType: String?, claims: Map<String, Map<String, Any?>>, documentBytes: ByteArray)

Properties

Link copied to clipboard

disclosed issuer-signed data elements, keyed by namespace then by element identifier. Values are the decoded CBOR data element values (String, Long, Boolean, ByteArray, List, Map, or com.dewa.walletsdk.secureqr.internal.CborTag).

Link copied to clipboard

the mdoc docType of the embedded document, e.g. "eu.europa.ec.av.1".

Link copied to clipboard

the raw CBOR encoding of the mdoc Document, retained so the credential can be cryptographically verified later.

Link copied to clipboard

AltID mnonce — the wallet-generated nonce (Base64URL of 16 bytes).

Link copied to clipboard

AltID txn — the transaction identifier the frames sum to.

Link copied to clipboard

AltID nbf — "not before" as a Unix timestamp in seconds.

Link copied to clipboard

AltID exp — "not after" as a Unix timestamp in seconds.

Functions

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