Class ClientIdentifier
Builds OpenID4VP client_id values that carry a Client Identifier Prefix.
public static class ClientIdentifier
- Inheritance
-
ClientIdentifier
- Inherited Members
Remarks
Additive: ClientId stays a caller-supplied string, so this is a convenience for producing a correct value rather than a change to the frozen contract.
Methods
X509Hash(X509Certificate2)
Builds an x509_hash client identifier from the leaf certificate the request is signed with.
public static string X509Hash(X509Certificate2 leafCertificate)
Parameters
leafCertificateX509Certificate2The leaf certificate, which must be first in the
x5cchain.
Returns
- string
A client_id of the form
x509_hash:<base64url SHA-256 of the DER certificate>.