prepareCredentialStorage

open suspend fun prepareCredentialStorage(holder: HolderAgent, scheme: CredentialScheme, policy: ValidationPolicy, renewalInfo: CredentialRenewalInfo? = null): KmmResult<PreparedCredentialStorage>(source)

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.

Fails if scheme does not support the representation of the credential.