OpenId4VpWallet
Implements the wallet side of Self-Issued OpenID Provider v2 and OpenID for Verifiable Presentations
Constructors
Types
Our implementation of ktor's FormDataContent, but with contentType without charset appended, so that some strict mDoc verifiers accept our authn response
Functions
Calls openId4VpHolder to finalize the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and return the redirect_uri of that POST (which the Wallet may open in a browser). In case the result shall be sent as a redirect to the verifier, we return that URL. In case the result shall be returned via the Digital Credentials API, an AuthenticationForward will be returned with the result to be forwarded.
Finalizes state into a platform-independent Digital Credentials API response model.
Exceptions may be sent to the verifier in sendAuthnErrorResponse.
Matches credentials through the protocol handler captured by state.
Prepares either an OpenID4VP or Annex C request received through the Digital Credentials API.
Sends an error response with the appropriate method. Returns nothing as we don't expect a useful response from the remote verifier.
Calls openId4VpHolder to finalize the authentication response. In case the result shall be POSTed to the verifier, we call client to do that, and return the redirect_uri of that POST (which the Wallet may open in a browser). In case the result shall be sent as a redirect to the verifier, we return that URL.