DeviceRequest

data class DeviceRequest

Top-level request in ISO 18013-5.

To construct an instance use buildDeviceRequest.

For a request received from a remote mdoc reader use the DeviceRequest.Companion.fromDataItem method. Note that you will need to manually call verifyReaderAuthentication before accessing the readerAuthAll or DocRequest.readerAuth fields for instances created this way.

Types

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

A builder for DeviceRequest.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

the document requests embedded in the request.

Link copied to clipboard

the ReaderAuthAll for the device request or empty if ReaderAuthAll is not used.

Link copied to clipboard

the version of the device request, e.g. 1.0 or 1.1.

Functions

Link copied to clipboard

Generates CBOR compliant with the CDDL for DeviceRequest according to ISO 18013-5.

Link copied to clipboard
fun verifyReaderAuthentication(sessionTranscript: DataItem)

Verifies reader authentication.