hwsecurity / de.cotech.hw / SecurityKeyCallback /
SecurityKeyCallback
interface SecurityKeyCallback< T : SecurityKey?>
A callback interface when a security key is discovered. This interface is parametrized with a type of SecurityKey, and is typically passed to registerCallback with a matching SecurityKeyConnectionMode.
See also
Name | Summary |
---|---|
de.cotech.hw.SecurityKeyConnectionMode | |
de.cotech.hw.SecurityKeyManager | SecurityKeyManager#registerCallback |
Functions
Name | Summary |
---|---|
onSecurityKeyDisconnected |
open fun onSecurityKeyDisconnected(securityKey: T) Called when a persistently connected Security Key was disconnected. |
onSecurityKeyDiscovered |
abstract fun onSecurityKeyDiscovered(securityKey: T) Called when a security key is discovered. |
onSecurityKeyDiscoveryFailed |
open fun onSecurityKeyDiscoveryFailed(exception: IOException) Called when a security key was discovered, but failed to connect.This can typically happen when the connected Security Key does not contain the expectedapplet, or the hardware is faulty. |