Package io.jans.fido2.ctap
Enum CoseMLDSAAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<CoseMLDSAAlgorithm>,java.lang.constant.Constable
The ML-DSA post-quantum signature algorithms from the FIDO Server Requirements v2.3 table. Code points
are the IANA COSE Algorithms registry values; the provider names are the JCA spellings, which carry the
hyphens a Java identifier cannot.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CoseMLDSAAlgorithmResolves a configured name, accepting both the IANA spelling (ML-DSA-44) and the constant spelling (ML_DSA_44), since the registry name is the one an administrator will reach for.static CoseMLDSAAlgorithmfromNumericValue(int value) The JCA name to request from the crypto provider.intstatic CoseMLDSAAlgorithmReturns the enum constant of this type with the specified name.static CoseMLDSAAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ML_DSA_44
-
ML_DSA_65
-
ML_DSA_87
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
fromNumericValue
-
fromName
Resolves a configured name, accepting both the IANA spelling (ML-DSA-44) and the constant spelling (ML_DSA_44), since the registry name is the one an administrator will reach for. -
getNumericValue
public int getNumericValue() -
getAlgorithmName
The JCA name to request from the crypto provider.
-