Table of Contents

Class ClientMetadata

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

Builder for the OpenID4VP client_metadata object, producing the JSON string expected by ClientMetadataJson.

public static class ClientMetadata
Inheritance
ClientMetadata
Inherited Members

Remarks

One builder, deliberately. This object used to be assembled independently by the library and by Tessio Cloud, which is invisible to a duplicate detector because the two versions were structurally different while meaning the same thing. They drifted, and the OpenID Foundation conformance suite found the product advertising values HAIP rejects long after the library had been fixed. Anything that sends a presentation request should call this rather than hand-rolling the object.

Methods

Build(string, JsonObject?)

Builds client_metadata for a request in the given credential format.

public static string Build(string credentialFormat, JsonObject? responseEncryptionJwk = null)

Parameters

credentialFormat string

dc+sd-jwt or mso_mdoc.

responseEncryptionJwk JsonObject

The public half of the response-encryption key, for direct_post.jwt. Null for direct_post, where there is nothing for the wallet to encrypt to. HAIP requires encrypted responses, so in practice this is supplied.

Returns

string

The client_metadata JSON.