Interface YubiKeyDevice


  • public interface YubiKeyDevice
    A reference to a physical YubiKey.
    • 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.