Interface FidoConnection

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, YubiKeyConnection

    public interface FidoConnection
    extends YubiKeyConnection
    A HID CTAP connection to a YubiKey.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int PACKET_SIZE  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void receive​(byte[] packet)
      Receives a HID CTAP packet from the YubiKey.
      void send​(byte[] packet)
      Sends a HID CTAP packet to the YubiKey.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • send

        void send​(byte[] packet)
           throws java.io.IOException
        Sends a HID CTAP packet to the YubiKey.
        Throws:
        java.io.IOException
      • receive

        void receive​(byte[] packet)
              throws java.io.IOException
        Receives a HID CTAP packet from the YubiKey.
        Throws:
        java.io.IOException