Package com.yubico.fido.metadata
Enum PublicKeyRepresentationFormat
- java.lang.Object
-
- java.lang.Enum<PublicKeyRepresentationFormat>
-
- com.yubico.fido.metadata.PublicKeyRepresentationFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PublicKeyRepresentationFormat>
public enum PublicKeyRepresentationFormat extends java.lang.Enum<PublicKeyRepresentationFormat>
The ALG_KEY constants are 16 bit long integers indicating the specific Public Key algorithm and encoding.Each constant has a case-sensitive string representation (in quotes), which is used in the authoritative metadata for FIDO authenticators.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALG_KEY_COSE
ALG_KEY_ECC_X962_DER
ALG_KEY_ECC_X962_RAW
ALG_KEY_RSA_2048_DER
ALG_KEY_RSA_2048_RAW
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PublicKeyRepresentationFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PublicKeyRepresentationFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALG_KEY_ECC_X962_RAW
public static final PublicKeyRepresentationFormat ALG_KEY_ECC_X962_RAW
-
ALG_KEY_ECC_X962_DER
public static final PublicKeyRepresentationFormat ALG_KEY_ECC_X962_DER
-
ALG_KEY_RSA_2048_RAW
public static final PublicKeyRepresentationFormat ALG_KEY_RSA_2048_RAW
-
ALG_KEY_RSA_2048_DER
public static final PublicKeyRepresentationFormat ALG_KEY_RSA_2048_DER
-
ALG_KEY_COSE
public static final PublicKeyRepresentationFormat ALG_KEY_COSE
-
-
Method Detail
-
values
public static PublicKeyRepresentationFormat[] 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 (PublicKeyRepresentationFormat c : PublicKeyRepresentationFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PublicKeyRepresentationFormat 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
-
-