Decoded
A credential decoded from its encoding in the credential response (OpenID4VCI 1.0, Appendix A).
Functions
Link copied to clipboard
open suspend fun prepareCredentialStorage(holder: HolderAgent, scheme: CredentialScheme, policy: ValidationPolicy, renewalInfo: CredentialRenewalInfo? = null): KmmResult<PreparedCredentialStorage>
Validates this credential of the type of scheme for storage by holder under policy, with renewalInfo, see HolderAgent.prepareCredentialStorage, and stores nothing yet. A credential that could not be decoded is prepared as rejected, so that it is reported like every other credential of a batch, but can never be stored.