Listener

interface Listener

Interface for listening to messages from the remote verifier device.

The Listener.onError callback can be called at any time - for example - if the remote verifier disconnects without using session termination or if the underlying transport encounters an unrecoverable error.

Functions

Link copied to clipboard
abstract fun onDeviceDisconnected(transportSpecificTermination: Boolean)

Called when the remote verifier device disconnects normally, that is using the session termination functionality in the underlying protocols.

Link copied to clipboard
abstract fun onDeviceRequest(deviceRequestBytes: ByteArray)

Called when the remote verifier device sends a request.

Link copied to clipboard
abstract fun onEReaderKeyReceived(eReaderKey: EcPublicKey)

Called when the reader ephemeral key has been received.

Link copied to clipboard
abstract fun onError(error: Throwable)

Called when an unrecoverable error happens, for example if the remote device disconnects unexpectedly (e.g. without first sending a session termination request).