Table of Contents

Class WalletResponseParser

Namespace
Tessio.Verifier.OpenId4Vp
Assembly
Tessio.Verifier.OpenId4Vp.dll

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

options WalletResponseParserOptions

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

response WalletResponseData

The wallet response as captured by the hosting layer.

ct CancellationToken

Cancellation token.

Returns

Task<IReadOnlyList<PresentedCredential>>

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

response WalletResponseData
ct CancellationToken

Returns

Task<ParsedWalletResponse>