Table of Contents

Class WalletResponseData

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

Host-agnostic representation of an inbound wallet response to the verifier's response_uri. Decouples the protocol parser from any specific HTTP framework.

public sealed record WalletResponseData : IEquatable<WalletResponseData>
Inheritance
WalletResponseData
Implements
Inherited Members

Remarks

FROZEN contract (contracts-v0). Exactly one of Form (for direct_post) or Body (for direct_post.jwt) is populated, per the request's ResponseMode.

Properties

Body

Raw request body bytes for direct_post.jwt responses (the JWE payload). Empty for form-urlencoded content-types.

public required ReadOnlyMemory<byte> Body { get; init; }

Property Value

ReadOnlyMemory<byte>

ContentType

Request content-type. Canonical values: application/x-www-form-urlencoded (for DirectPost) or application/jwt (for DirectPostJwt).

public required string ContentType { get; init; }

Property Value

string

Form

URL-decoded form fields for direct_post responses. Multi-valued because HTTP form encoding permits repeated keys; OpenID4VP responses use single values per key in practice. Empty for non-form content-types.

public required IReadOnlyDictionary<string, IReadOnlyList<string>> Form { get; init; }

Property Value

IReadOnlyDictionary<string, IReadOnlyList<string>>