verifySdJwtPresentation
suspend fun verifySdJwtPresentation(compactSerialization: String, nonce: String, documentTypeRepository: DocumentTypeRepository?, transactionData: List<TransactionData<*>>, identifier: String? = null, now: Instant = Clock.System.now(), expectedAudience: String?, keyBindingRequired: Boolean = true, docRequestIds: List<Int>? = null): VerifiedPresentation
Generates VerifiedPresentation from an SD-JWT / SD-JWT+KB presentation.
Return
a VerifiedPresentation instance.
Parameters
compactSerialization
the compact serialization of the SD-JWT or SD-JWT+KB.
nonce
the nonce used in the request.
documentTypeRepository
a DocumentTypeRepository or null.
transactionData
transaction data associated with the credential query.
identifier
optional VP token credential query identifier.
now
the time at which to evaluate credential and KB-JWT validity.
expectedAudience
the expected KB-JWT aud claim value.
keyBindingRequired
whether a Key Binding JWT is required even if the credential does not contain a cnf claim.
docRequestIds
optional list of DocRequest indices satisfied by this presentation.