AcceptanceResult

data class AcceptanceResult(val decision: AcceptanceDecision, val signatureValid: Boolean, val issuerTrusted: Boolean, val withinValidityWindow: Boolean, val revocation: RevocationState, val revocationDataStale: Boolean, val disclosedClaims: Map<String, String>, val portrait: ByteArray? = null, val reason: String? = null, val revocationCheckedAt: Instant? = null, val issuerName: String? = null, val revocationPublished: Boolean = true)

The single composed verdict a verifier acts on.

decision is the overall outcome; the boolean signals are the evidence that produced it so the integrator can present nuance (e.g. accept-with-stale-revocation-data offline).

Constructors

Link copied to clipboard
constructor(decision: AcceptanceDecision, signatureValid: Boolean, issuerTrusted: Boolean, withinValidityWindow: Boolean, revocation: RevocationState, revocationDataStale: Boolean, disclosedClaims: Map<String, String>, portrait: ByteArray? = null, reason: String? = null, revocationCheckedAt: Instant? = null, issuerName: String? = null, revocationPublished: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard

Disclosed data elements: element id → human-readable value (e.g. family_name → Mustermann).

Link copied to clipboard
val issuerName: String? = null

Who issued the credential, for display: the disclosed issuing authority if shared, else the name configured for the trusted issuer root (com.wallet.config.TrustConfig.issuerDisplayNames), else the root certificate's common name. Null when the issuer isn't trusted.

Link copied to clipboard
Link copied to clipboard
val portrait: ByteArray? = null

The disclosed portrait image bytes (JPEG), if the holder released it — for rendering the ID.

Link copied to clipboard
val reason: String? = null
Link copied to clipboard
Link copied to clipboard

When this device last established the issuer's revocation status (fetched/synced the online status list). null means it never has — so revocation can't be confirmed offline and the verdict is "valid offline, revocation not established" rather than a full green. The verifier UI surfaces this as "Last established: …" so an officer knows how current the revocation answer is.

Link copied to clipboard

True when the revocation answer came from a stale/offline cache.

Link copied to clipboard

False when the credential carries no revocation status reference at all (the issuer doesn't publish revocation) — distinct from "couldn't check" (offline), where this stays true.

Link copied to clipboard
Link copied to clipboard