Class Dcql
Builders for the common OpenID4VP DCQL (Digital Credentials Query Language) queries, producing the JSON string expected by DcqlQueryJson. These cover the shapes the verifier itself requests (single credential, top-level claims); hand-write the JSON for anything more exotic (nested claim paths, multiple credentials, claim value constraints).
public static class Dcql
- Inheritance
-
Dcql
- Inherited Members
Fields
DefaultCredentialId
The credential id the verifier's request/verify pipeline expects for a single-credential query.
public const string DefaultCredentialId = "credential"
Field Value
Methods
AgeOver(int, string)
Convenience for the common age check: a single SD-JWT VC credential of type vct
requesting the boolean age_over_{age} claim.
public static string AgeOver(int age, string vct)
Parameters
Returns
Mdoc(string, string, params string[])
A query for a single mdoc credential of document type docType, requesting each
of elements from nameSpace (mdoc DCQL paths are
[namespace, element]).
public static string Mdoc(string docType, string nameSpace, params string[] elements)
Parameters
Returns
SdJwtVc(string, params string[])
A query for a single SD-JWT VC credential of type vct, requesting each of
claims by selective disclosure. Each entry is a top-level claim name.
public static string SdJwtVc(string vct, params string[] claims)