Success

data class Success(val issued: NonEmptyList<IssuedCredentials>, val reissuingStoreEntryId: Long? = null) : CredentialIssuanceResult(source)

Store the credentials issued for each requested credential configuration after validating them with prepareCredentialStorage, and optionally their IssuedCredentials.refreshToken for a later renewal.

Constructors

Link copied to clipboard
constructor(issued: NonEmptyList<IssuedCredentials>, reissuingStoreEntryId: Long? = null)

Properties

Link copied to clipboard

The credentials of all issued configurations, decoded without validating them.

Link copied to clipboard

The credentials of each requested credential configuration.

Link copied to clipboard

The renewal info of the first of issued.

Link copied to clipboard

The stored credential the issued credentials replace, as passed to OpenId4VciKtorClient.startProvisioningWithAuthRequestReturningResult and kept in the ProvisioningContext, for the wallet to remove once it stored the new ones.

Functions

Link copied to clipboard

Validates every credential of issued as the type of its IssuedCredentials.scheme for storage by holder under policy, with its IssuedCredentials.refreshToken for its renewal, see ReceivedCredential.prepareCredentialStorage, and stores nothing yet. Show the reports to the user, then store each credential with HolderAgent.storeAccepted, or, if the user accepts a rejected report, e.g. of an untrusted issuer or a credential missing claims its type requires (see ValidationPolicy.requiredClaims), with HolderAgent.storeAfterUserConsent.