Enum Class FormFactor

java.lang.Object
java.lang.Enum<FormFactor>
com.yubico.yubikit.management.FormFactor
All Implemented Interfaces:
Serializable, Comparable<FormFactor>, Constable

public enum FormFactor extends Enum<FormFactor>
The physical form factor of a YubiKey.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Used when information about the YubiKey's form factor isn't available.
    A keychain-sized YubiKey with fingerprint sensor and USB-A connector.
    A keychain-sized YubiKey with a USB-A connector.
    A nano-sized YubiKey with a USB-A connector.
    A keychain-sized YubiKey with fingerprint sensor and USB-C connector.
    A keychain-sized YubiKey with a USB-C connector.
    A keychain-sized YubiKey with both USB-C and Lightning connectors.
    A nano-sized YubiKey with a USB-C connector.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static FormFactor
    valueOf(int value)
    Returns the form factor corresponding to the given Management application form factor constant, or UNKNOWN if the value is unknown.
    static FormFactor
    Returns the enum constant of this class with the specified name.
    static FormFactor[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNKNOWN

      public static final FormFactor UNKNOWN
      Used when information about the YubiKey's form factor isn't available.
    • USB_A_KEYCHAIN

      public static final FormFactor USB_A_KEYCHAIN
      A keychain-sized YubiKey with a USB-A connector.
    • USB_A_NANO

      public static final FormFactor USB_A_NANO
      A nano-sized YubiKey with a USB-A connector.
    • USB_C_KEYCHAIN

      public static final FormFactor USB_C_KEYCHAIN
      A keychain-sized YubiKey with a USB-C connector.
    • USB_C_NANO

      public static final FormFactor USB_C_NANO
      A nano-sized YubiKey with a USB-C connector.
    • USB_C_LIGHTNING

      public static final FormFactor USB_C_LIGHTNING
      A keychain-sized YubiKey with both USB-C and Lightning connectors.
    • USB_A_BIO

      public static final FormFactor USB_A_BIO
      A keychain-sized YubiKey with fingerprint sensor and USB-A connector.
    • USB_C_BIO

      public static final FormFactor USB_C_BIO
      A keychain-sized YubiKey with fingerprint sensor and USB-C connector.
  • Field Details

    • value

      public final int value
  • Method Details

    • values

      public static FormFactor[] values()
      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 FormFactor valueOf(String name)
      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
    • valueOf

      public static FormFactor valueOf(int value)
      Returns the form factor corresponding to the given Management application form factor constant, or UNKNOWN if the value is unknown.