Package com.yubico.yubikit.management
Enum Capability
- java.lang.Object
-
- java.lang.Enum<Capability>
-
- com.yubico.yubikit.management.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 FIDO2Identifies the FIDO2 (CTAP2) portion of the FIDO application.OATHIdentifies the OATH application, implementing the YKOATH protocol.OPENPGPIdentifies the OpenPGP application, implementing the OpenPGP Card protocol.OTPIdentifies the YubiOTP application.PIVIdentifies the PIV application, implementing the PIV protocol.U2FIdentifies the U2F (CTAP1) portion of the FIDO application.
-
Field Summary
Fields Modifier and Type Field Description intbit
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CapabilityvalueOf(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.
-
-
-
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.
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-