decrypt
suspend fun decrypt(recipientPrivateKey: AsymmetricKey, encryptionParameters: EncryptionParameters, sessionTranscript: DataItem, atTime: Instant = Clock.System.now()): EncryptedDocumentsPlaintext
Decrypts the encrypted documents.
After decryption, the same verification checks as in DeviceResponse.verify are performed to verify the integrity of the returned documents.
Return
Parameters
recipientPrivateKey
the private key used for decryption.
encryptionParameters
the same EncryptionParameters as transferred in the org.multipaz.mdoc.request.DeviceRequest.
sessionTranscript
the session transcript.
atTime
the point in time for validating the whether returned documents are valid.