Package com.yubico.fido.metadata
Enum CtapVersion
- java.lang.Object
-
- java.lang.Enum<CtapVersion>
-
- com.yubico.fido.metadata.CtapVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CtapVersion>
public enum CtapVersion extends java.lang.Enum<CtapVersion>
Enumeration of CTAP versions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIDO_2_0
FIDO_2_1
FIDO_2_1_PRE
U2F_V2
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CtapVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CtapVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
U2F_V2
public static final CtapVersion U2F_V2
-
FIDO_2_0
public static final CtapVersion FIDO_2_0
-
FIDO_2_1_PRE
public static final CtapVersion FIDO_2_1_PRE
-
FIDO_2_1
public static final CtapVersion FIDO_2_1
-
-
Method Detail
-
values
public static CtapVersion[] 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 (CtapVersion c : CtapVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CtapVersion 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
-
-