OpenId4VpHolder
Combines Verifiable Presentations with OAuth 2.0. Implements OpenID4VP (1.0, 2025-07-09) as well as SIOP V2 (D13, 2023-11-28).
The verifier (see OpenId4VpVerifier) creates the Authentication Request, we can parse and validate it in startAuthorizationResponsePreparation, show the information to the user, and create the response in finalizeAuthorizationResponse, and send it back to the verifier.
Constructors
Functions
Creates an error response for the error, which can be sent to the verifier / relying party.
Pass in the deserialized AuthenticationRequestParameters, which were either encoded as query params, or JSON serialized as a JWT Request Object.
Pass in the URL sent by the Verifier (containing the AuthenticationRequestParameters as query parameters), to create AuthenticationResponseResult that can be sent back to the Verifier.
Finalize the authorization response, given the preparationState from startAuthorizationResponsePreparation, and the credentialPresentation selected by the user.
Validates the AuthenticationRequestParameters from params and loads remote objects (client metadata, keys). Clients need to inform the user, get consent, and resume in finalizeAuthorizationResponse.
Parses the AuthenticationRequestParameters from input and loads remote objects (client metadata, keys). Clients need to inform the user, get consent, and resume in finalizeAuthorizationResponse.