verifySingleDoc
suspend fun verifySingleDoc(sessionTranscript: DataItem, transactionData: List<TransactionData<*>>, atTime: Instant = Clock.System.now(), rejectIfValidUntilAfterNotAfter: Boolean = false)
Similar to verify but for simple responses containing only a single document.
DeviceResponse must contain a single document. Parsed transaction data is supplied using transactionData parameter instead of DeviceRequest.
Parameters
sessionTranscript
the session transcript to use.
transactionData
transaction data that was associated with the request
atTime
the point in time for validating whether returned documents are valid.
rejectIfValidUntilAfterNotAfter
if true, rejects the MSO if its validUntil date exceeds the Document Signer certificate validity period according to ISO/IEC 18013-5 Second Edition clause 12.8.1. This defaults to false as this check is discretionary for readers ("may reject") and official test vectors in ISO/IEC 18013-5:2021 Annex D have validUntil after notAfter.
Throws
if validation fails.