checkResponseSatisfiesQuery

fun checkResponseSatisfiesQuery(presentationsByQueryId: Map<String, List<VerifiedPresentation>>, enforceClaimConstraints: Boolean = true, documentTypeRepository: DocumentTypeRepository? = null)

Verifies that presentationsByQueryId satisfies all constraints of this DCQL query:

  • Every returned query ID exists in credentialQueries.

  • Every returned query ID has at least one presentation, and at most one when multiple is false.

  • Every presentation matches its DcqlCredentialQuery's format, type (vct or docType), and requested claims / claim_sets.

  • All required credentials (or required credentialSetQueries options) are fulfilled.

Throws

if any constraint is violated.