Interface YubiKeyDevice


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

    Modifier and Type Method Description
    Transport getTransport()
    Returns the transport used for communication
    <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.
    boolean supportsConnection​(java.lang.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

      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.