Builder
class Builder(sessionTranscript: DataItem, status: Int, eReaderKey: EcPublicKey? = null, version: String? = null)
A builder for DeviceResponse.
Parameters
sessionTranscript
the session transcript to use.
status
the status to use in the response, for example STATUS_OK.
eReaderKey
the ephemeral reader key or null if not using session encryption.
version
the version to use or null to automatically select the version.
Constructors
Link copied to clipboard
constructor(sessionTranscript: DataItem, status: Int, eReaderKey: EcPublicKey? = null, version: String? = null)
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 the response.
suspend fun addDocument(credential: MdocCredential, requestedClaims: List<MdocRequestedClaim>, deviceNamespaces: DeviceNamespaces = buildDeviceNamespaces {}, errors: Map<String, Map<String, Int>> = emptyMap()): DeviceResponse.Builder
Adds an MdocCredential to the response.
Link copied to clipboard
Adds errors to the response.
Link copied to clipboard
Adds encrypted documents to the response.
suspend fun addEncryptedDocuments(encryptionParameters: EncryptionParameters, docRequestId: Int, builderAction: suspend EncryptedDocuments.Builder.() -> Unit)
Add encrypted documents to a DeviceResponse being built.
Link copied to clipboard
Adds a Zero-Knowledge Proof to the response.
Link copied to clipboard
Builds the DeviceResponse.