Package 

Class UsbOtpConnection

  • All Implemented Interfaces:
    com.yubico.yubikit.core.YubiKeyConnection , com.yubico.yubikit.core.otp.OtpConnection , java.io.Closeable , java.lang.AutoCloseable

    
    public class UsbOtpConnection
    extends UsbYubiKeyConnection implements OtpConnection
                        

    Class that provides interface to read and send data over YubiKey HID (keyboard) interface

    NOTE: when we release HID interface YubiKey will be recognized as keyboard again, it may give you a flash of UI on Android (notification how to handle Keyboard) which means your active Activity may got to background for a moment. Be aware of that and make sure that your app can handle that.

    • Method Summary

      Modifier and Type Method Description
      void receive(Array<byte> report)
      void send(Array<byte> report) Write single feature report
      void close()
      boolean isClosed()
      • Methods inherited from class java.io.Closeable

        close
      • Methods inherited from class com.yubico.yubikit.core.otp.OtpConnection

        receive, send
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • send

         void send(Array<byte> report)

        Write single feature report

        Parameters:
        report - blob size of FEATURE_RPT_SIZE