EncryptedDocuments

A structure for holding encrypted documents returned in a DeviceResponse.

Types

Link copied to clipboard
class Builder(sessionTranscript: DataItem, encryptionParameters: EncryptionParameters, docRequestId: 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 document request ID.

Link copied to clipboard
val enc: ByteString

the encapsulated key.

Functions

Link copied to clipboard
suspend fun decrypt(recipientPrivateKey: AsymmetricKey, encryptionParameters: EncryptionParameters, sessionTranscript: DataItem, atTime: Instant = Clock.System.now()): EncryptedDocumentsPlaintext

Decrypts the encrypted documents.