JwtProofCreator
Creates proofs of the jwt proof type (OpenID4VCI 1.0, Appendix F.1): a JWT of type openid4vci-proof+jwt, signed with keyMaterial, the key the issued credential will be bound to, which the header references as jwk or kid, see selectProofJwtKeyBinding. Its payload carries the client_id as iss, the Credential Issuer Identifier as aud, the c_nonce as nonce, and as iat the time of clock three minutes ago, to tolerate the clock skew of the issuer.
If the issuer requires a key attestation for the jwt proof type (key_attestations_required), the proof carries one in its key_attestation header (Appendix D), loaded with loadKeyAttestation. Then creating the proof fails without loadKeyAttestation, if loadKeyAttestation fails, or if the key attestation does not attest keyMaterial as its first key.
Creates no proof if the issuer does not accept the jwt proof type for the requested credential.
Constructors
Functions
Creates the proof for a credential of credentialFormat to be requested from credentialIssuer.