hwsecurity / de.cotech.hw.raw / RawSecurityKey /
RawSecurityKey
open class RawSecurityKey : SecurityKey
A shim Security Key that bears no semantics of its own, but allows the programmer to dynamically connect other connection modes via establishAppletConnection.
This SecurityKey is intended for advanced use cases. It should not be necessary for common use cases that only work with one kind of applet.
Constructors
Name | Summary |
---|---|
RawSecurityKey | open fun RawSecurityKey(config: SecurityKeyManagerConfig, transport: Transport) |
Functions
Name | Summary |
---|---|
checkConnectionOrThrow |
open fun checkConnectionOrThrow() This method checks if communication with the security key is still available by sending a no-op ping command. |
establishAppletConnection |
open fun <T : SecurityKey?> establishAppletConnection(securityKeyConnectionMode: SecurityKeyConnectionMode<T>): T Establishes a connection to an applet through the provided SecurityKeyConnectionMode. |
getTransport | open fun getTransport(): Transport |
isPersistentlyConnected |
open fun isPersistentlyConnected(): Boolean true if the underlying transport is persistently connected. |
isTransportNfc |
open fun isTransportNfc(): Boolean true if the underlying transport is NFC. |
isTransportUsb |
open fun isTransportUsb(): Boolean true if the underlying transport is USB. |
release |
open fun release() Releases the Security Key as well as the underlying transport. |
Properties
Name | Summary |
---|---|
currentSecurityKey | private open val currentSecurityKey: SecurityKey |