Interface YubiKeyDevice


public interface YubiKeyDevice
A reference to a physical YubiKey.
  • Method Details

    • getTransport

      Transport getTransport()
      Returns the transport used for communication
    • supportsConnection

      boolean supportsConnection(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(Class<T> connectionType, Callback<Result<T,IOException>> callback)
      Requests a new connection of the given connection type.
    • openConnection

      <T extends YubiKeyConnection> T openConnection(Class<T> connectionType) throws IOException
      Returns a new connection of the given connection type.
      Throws:
      IOException