Package com.yubico.yubikit.core
Interface YubiKeyDevice
-
public interface YubiKeyDeviceA reference to a physical YubiKey.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransportgetTransport()Returns the transport used for communication<T extends YubiKeyConnection>
voidrequestConnection(java.lang.Class<T> connectionType, Callback<Result<T,java.io.IOException>> callback)Requests a new connection of the given connection type.booleansupportsConnection(java.lang.Class<? extends YubiKeyConnection> connectionType)Returns whether or not a specific connection type is supported for this YubiKey, over this transport.
-
-
-
Method Detail
-
getTransport
Transport getTransport()
Returns the transport used for communication
-
supportsConnection
boolean supportsConnection(java.lang.Class<? extends YubiKeyConnection> connectionType)
Returns whether or not a specific connection type is supported for this YubiKey, over this transport.
-
requestConnection
<T extends YubiKeyConnection> void requestConnection(java.lang.Class<T> connectionType, Callback<Result<T,java.io.IOException>> callback)
Requests a new connection of the given connection type.
-
-