DCQLJsonClaimsQuery

@Serializable
data class DCQLJsonClaimsQuery(    val id: DCQLClaimsQueryIdentifier? = null,     val values: List<DCQLExpectedClaimValue>? = null,     val path: DCQLClaimsPathPointer) : DCQLClaimsQuery(source)

Constructors

Link copied to clipboard
constructor(id: DCQLClaimsQueryIdentifier? = null, values: List<DCQLExpectedClaimValue>? = null, path: DCQLClaimsPathPointer)

Types

Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "id")
open override val id: DCQLClaimsQueryIdentifier? = null

OID4VP draft 23: id: REQUIRED if claim_sets is present in the Credential Query; OPTIONAL otherwise. A string identifying the particular claim. The value MUST be a non-empty string consisting of alphanumeric, underscore (_) or hyphen (-) characters. Within the particular claims array, the same id MUST NOT be present more than once.

Link copied to clipboard
@SerialName(value = "path")
val path: DCQLClaimsPathPointer

OID4VP draft 23: path: REQUIRED if the Credential Format uses a JSON-based claims structure (e.g., IETF SD-JWT VC and W3C Verifiable Credentials); MUST NOT be present otherwise. The value MUST be a non-empty array representing a claims path pointer that specifies the path to a claim within the Verifiable Credential, as defined in Section 6.4.

Link copied to clipboard
@SerialName(value = "values")
open override val values: List<DCQLExpectedClaimValue>? = null

OID4VP draft 23: values: OPTIONAL. An array of strings, integers or boolean values that specifies the expected values of the claim. If the values property is present, the Wallet SHOULD return the claim only if the type and value of the claim both match for at least one of the elements in the array. Details of the processing rules are defined in Section 6.3.1.1.

Functions

Link copied to clipboard
open fun <Credential : Any> executeClaimsQueryAgainstCredential(    credentialQuery: DCQLCredentialQuery,     credential: Credential,     credentialStructureExtractor: (Credential) -> DCQLCredentialClaimStructure): KmmResult<DCQLClaimsQueryResult>
Link copied to clipboard
fun <Credential : Any> executeJsonClaimsQueryAgainstCredential(    credentialQuery: DCQLCredentialQuery,     credential: Credential,     credentialStructureExtractor: (Credential) -> DCQLCredentialClaimStructure.JsonBasedStructure,     jsonBasedCredentialFormats: List<CredentialFormatEnum> = listOf( CredentialFormatEnum.DC_SD_JWT, CredentialFormatEnum.JWT_VC, )): KmmResult<DCQLClaimsQueryResult.JsonResult>

6.3.1.1. Selecting Claims