Enum Class UsbInterface.Mode

java.lang.Object
java.lang.Enum<UsbInterface.Mode>
com.yubico.yubikit.management.UsbInterface.Mode
All Implemented Interfaces:
Serializable, Comparable<UsbInterface.Mode>, Constable
Enclosing class:
UsbInterface

@Deprecated public static enum UsbInterface.Mode extends Enum<UsbInterface.Mode>
Deprecated.
Used for configuring USB Mode for YubiKey 3 and 4.

This is replaced by DeviceConfig starting with YubiKey 5.

  • Enum Constant Details

  • Field Details

    • value

      @Deprecated public final byte value
      Deprecated.
    • interfaces

      @Deprecated public final int interfaces
      Deprecated.
  • Method Details

    • values

      public static UsbInterface.Mode[] values()
      Deprecated.
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static UsbInterface.Mode valueOf(String name)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMode

      @Deprecated public static UsbInterface.Mode getMode(int interfaces)
      Deprecated.
      Returns the USB Mode given the enabled USB interfaces it has.