Class DcqlCredentialSet
- Namespace
- Tessio.Verifier.OpenId4Vp
- Assembly
- Tessio.Verifier.OpenId4Vp.dll
One Credential Set Query: the combinations of Credential Queries, by id, that each answer one use case.
public sealed record DcqlCredentialSet : IEquatable<DcqlCredentialSet>
- Inheritance
-
DcqlCredentialSet
- Implements
- Inherited Members
Remarks
Pass it to Query(IReadOnlyList<DcqlCredentialQuery>, params DcqlCredentialSet[]). For the common case, one credential out of several alternatives, AnyOf(params DcqlCredentialQuery[]) builds the set for you.
Properties
Options
The options, at least one. Each is a non-empty list of Credential Query ids, and the wallet answers the set with every credential of one option.
public required IReadOnlyList<IReadOnlyList<string>> Options { get; init; }
Property Value
Remarks
SPEC: OpenID4VP 1.0 section 6.2, options: "A non-empty array, where each value in the array is a list of Credential Query identifiers representing one set of Credentials that satisfies the use case. The value of each element in the options array is a non-empty array of identifiers which reference elements in credentials."
Required
Whether the use case needs this set answered. True by default, as the specification's default is, and written into the query only when false.
public bool Required { get; init; }
Property Value
Remarks
SPEC: OpenID4VP 1.0 section 6.2, required: "A boolean which indicates whether this set of Credentials is required to satisfy the particular use case at the Verifier. If omitted, the default value is true."