sendDeviceResponse

fun sendDeviceResponse(deviceResponseBytes: ByteArray?, status: Long?)

Send a response to the remote mdoc verifier.

This is typically called in response to the Listener.onDeviceRequest callback.

If set, deviceResponseBytes parameter should contain CBOR conforming to DeviceResponse as specified in ISO/IEC 18013-5 section 8.3 Device Retrieval.

At least one of deviceResponseBytes and status must be set.

Parameters

deviceResponseBytes

the response to send or null.

status

optional status code to send.