Enum CoseMLDSAAlgorithm

java.lang.Object
java.lang.Enum<CoseMLDSAAlgorithm>
io.jans.fido2.ctap.CoseMLDSAAlgorithm
All Implemented Interfaces:
Serializable, Comparable<CoseMLDSAAlgorithm>, java.lang.constant.Constable

public enum CoseMLDSAAlgorithm extends Enum<CoseMLDSAAlgorithm>
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.
  • Enum Constant Details

  • Method Details

    • values

      public static CoseMLDSAAlgorithm[] 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

      public static CoseMLDSAAlgorithm valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromNumericValue

      public static CoseMLDSAAlgorithm fromNumericValue(int value)
    • fromName

      public static CoseMLDSAAlgorithm fromName(String name)
      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

      public String getAlgorithmName()
      The JCA name to request from the crypto provider.