Class WalletResponseData
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
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
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; }