EncryptedDocuments

A structure for holding encrypted documents returned in a DeviceResponse.

Types

Link copied to clipboard
class Builder(sessionTranscript: DataItem, encryptionParameters: EncryptionParameters, docRequestIds: List<Int>)

A builder for EncryptedDocuments.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val ciphertext: ByteString

the ciphertext.

Link copied to clipboard

the DocRequest indices in DeviceRequest.docRequests satisfied by the encrypted documents.

Link copied to clipboard
val enc: ByteString

the encapsulated key.

Functions

Link copied to clipboard
suspend fun decrypt(recipientPrivateKey: AsymmetricKey, encryptionParameters: EncryptionParameters, sessionTranscript: DataItem, transactionDataList: List<List<TransactionData<*>>> = emptyList(), atTime: Instant = Clock.System.now(), deviceRequest: DeviceRequest? = null, documentTypeRepository: DocumentTypeRepository? = null): EncryptedDocumentsPlaintext

Decrypts the encrypted documents.