Package com.yubico.yubikit.core
Interface YubiKeyDevice
public interface YubiKeyDevice
A reference to a physical YubiKey.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the transport used for communication<T extends YubiKeyConnection>
TopenConnection(Class<T> connectionType) Returns a new connection of the given connection type.<T extends YubiKeyConnection>
voidrequestConnection(Class<T> connectionType, Callback<Result<T, IOException>> callback) Requests a new connection of the given connection type.booleansupportsConnection(Class<? extends YubiKeyConnection> connectionType) Returns whether or not a specific connection type is supported for this YubiKey, over this transport.
-
Method Details
-
getTransport
Transport getTransport()Returns the transport used for communication -
supportsConnection
Returns whether or not a specific connection type is supported for this YubiKey, over this transport. -
requestConnection
<T extends YubiKeyConnection> void requestConnection(Class<T> connectionType, Callback<Result<T, IOException>> callback) Requests a new connection of the given connection type. -
openConnection
Returns a new connection of the given connection type.- Throws:
IOException
-