Class WalletResponseParser
Parses wallet authorization responses — direct_post (cleartext form) and
direct_post.jwt (encrypted JWE in the response form parameter) — and extracts the
presented credentials from vp_token.
public sealed class WalletResponseParser : IPresentationResponseParser
- Inheritance
-
WalletResponseParser
- Implements
- Inherited Members
Constructors
WalletResponseParser(WalletResponseParserOptions?)
Creates the parser.
public WalletResponseParser(WalletResponseParserOptions? options = null)
Parameters
optionsWalletResponseParserOptions
Methods
ParseAsync(WalletResponseData, CancellationToken)
Parses the wallet response and returns the credentials it presented.
public Task<IReadOnlyList<PresentedCredential>> ParseAsync(WalletResponseData response, CancellationToken ct = default)
Parameters
responseWalletResponseDataThe wallet response as captured by the hosting layer.
ctCancellationTokenCancellation token.
Returns
ParseDetailedAsync(WalletResponseData, CancellationToken)
Parses the response including the state needed for session correlation. Prefer this
over ParseAsync(WalletResponseData, CancellationToken) when hosting the wallet callback: for direct_post.jwt
the state travels inside the encrypted JWT.
public Task<ParsedWalletResponse> ParseDetailedAsync(WalletResponseData response, CancellationToken ct = default)
Parameters
responseWalletResponseDatactCancellationToken