Builder

class Builder(val sessionTranscript: DataItem, val deviceRequestInfo: DeviceRequestInfo? = null, val version: String? = null)

A builder for DeviceRequest.

Constructors

Link copied to clipboard
constructor(sessionTranscript: DataItem, deviceRequestInfo: DeviceRequestInfo? = null, version: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard

the SessionTranscript CBOR.

Link copied to clipboard

the version to use or null to automatically determine which version to use.

Functions

Link copied to clipboard
fun addDocRequest(docType: String, nameSpaces: Map<String, Map<String, Boolean>>, docRequestInfo: DocRequestInfo?): DeviceRequest.Builder
suspend fun addDocRequest(docType: String, nameSpaces: Map<String, Map<String, Boolean>>, docRequestInfo: DocRequestInfo?, readerKey: AsymmetricKey.X509Compatible): DeviceRequest.Builder

Adds a document request to the builder.

Link copied to clipboard

Adds a signature over the entire request.

Link copied to clipboard