DeviceRetrievalHelper

Helper used for establishing engagement with, interacting with, and presenting documents to a remote mdoc reader device.

This class implements the interface between an mdoc and mdoc reader using the connection setup and device retrieval interfaces defined in ISO/IEC 18013-5:2021.

Reverse engagement as per drafts of 18013-7 and 23220-4 is supported. These protocols are not finalized so should only be used for testing.

Types

Link copied to clipboard
class Builder(context: Context, listener: DeviceRetrievalHelper.Listener, executor: Executor, eDeviceKey: EcPrivateKey)
Link copied to clipboard
object Companion
Link copied to clipboard
interface Listener

Interface for listening to messages from the remote verifier device.

Properties

Link copied to clipboard

The bytes of the device engagement being used.

Link copied to clipboard

Gets the ephemeral reader key.

Link copied to clipboard

The bytes of the handover being used.

Link copied to clipboard

Whether transport specific termination is available for the current connection.

Link copied to clipboard

The time spent doing BLE scanning or 0 if no scanning happened.

Link copied to clipboard

The bytes of the session transcript.

Functions

Link copied to clipboard

Stops the presentation and shuts down the transport.

Link copied to clipboard
fun reportDeviceDisconnected(transportSpecificTermination: Boolean)
Link copied to clipboard
fun reportDeviceRequest(deviceRequestBytes: ByteArray)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun sendDeviceResponse(deviceResponseBytes: ByteArray?, status: Long?)

Send a response to the remote mdoc verifier.

Link copied to clipboard

Sends a transport-specific termination message.

Link copied to clipboard
fun start()