Builder

class Builder(sessionTranscript: DataItem, encryptionParameters: EncryptionParameters, docRequestId: Int)

A builder for EncryptedDocuments.

Parameters

sessionTranscript

the session transcript to use.

encryptionParameters
docRequestId

the document request ID.

Constructors

Link copied to clipboard
constructor(sessionTranscript: DataItem, encryptionParameters: EncryptionParameters, docRequestId: Int)

Functions

Link copied to clipboard
suspend fun addDocument(docType: String, issuerAuth: CoseSign1, issuerNamespaces: IssuerNamespaces, deviceNamespaces: DeviceNamespaces, deviceKey: AsymmetricKey, errors: Map<String, Map<String, Int>> = emptyMap()): DeviceResponse.Builder

Low-level function to add a MdocDocument to an encrypted documents structure.

suspend fun addDocument(credential: MdocCredential, requestedClaims: List<MdocRequestedClaim>, deviceNamespaces: DeviceNamespaces = buildDeviceNamespaces {}, errors: Map<String, Map<String, Int>> = emptyMap()): DeviceResponse.Builder

Adds an MdocCredential to an encrypted documents structure.

Link copied to clipboard

Adds a Zero-Knowledge Proof to an encrypted documents structure.

Link copied to clipboard
suspend fun build(): EncryptedDocuments

Builds the EncryptedDocuments structure.