Enum Capability

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Capability>

    public enum Capability
    extends java.lang.Enum<Capability>
    Identifies a feature (typically an application) on a YubiKey which may or may not be supported, and which can be enabled or disabled.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FIDO2
      Identifies the FIDO2 (CTAP2) portion of the FIDO application.
      OATH
      Identifies the OATH application, implementing the YKOATH protocol.
      OPENPGP
      Identifies the OpenPGP application, implementing the OpenPGP Card protocol.
      OTP
      Identifies the YubiOTP application.
      PIV
      Identifies the PIV application, implementing the PIV protocol.
      U2F
      Identifies the U2F (CTAP1) portion of the FIDO application.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int bit  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Capability valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Capability[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • OTP

        public static final Capability OTP
        Identifies the YubiOTP application.
      • U2F

        public static final Capability U2F
        Identifies the U2F (CTAP1) portion of the FIDO application.
      • OPENPGP

        public static final Capability OPENPGP
        Identifies the OpenPGP application, implementing the OpenPGP Card protocol.
      • PIV

        public static final Capability PIV
        Identifies the PIV application, implementing the PIV protocol.
      • OATH

        public static final Capability OATH
        Identifies the OATH application, implementing the YKOATH protocol.
      • FIDO2

        public static final Capability FIDO2
        Identifies the FIDO2 (CTAP2) portion of the FIDO application.
    • Field Detail

      • bit

        public final int bit
    • Method Detail

      • values

        public static Capability[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Capability c : Capability.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Capability valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null