Enum Class MdocAlgorithm

java.lang.Object
java.lang.Enum<MdocAlgorithm>
org.keycloak.mdoc.MdocAlgorithm
All Implemented Interfaces:
Serializable, Comparable<MdocAlgorithm>, Constable

public enum MdocAlgorithm extends Enum<MdocAlgorithm>
Mapping between Keycloak's JOSE algorithm names and the COSE algorithm identifiers used by ISO mdoc IssuerAuth. OID4VCI 1.0 Appendix A.2.2 advertises mDoc credential signing algorithms as numeric COSE identifiers, while Keycloak signing keys and proof validation use JOSE names.
  • Enum Constant Details

  • Method Details

    • values

      public static MdocAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MdocAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getJoseAlgorithm

      public String getJoseAlgorithm()
    • getCoseAlgorithmIdentifier

      public int getCoseAlgorithmIdentifier()
    • toCoseAlgorithmIdentifier

      public com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier toCoseAlgorithmIdentifier()
    • getSupportedJoseAlgorithms

      public static List<String> getSupportedJoseAlgorithms()
    • fromJoseAlgorithm

      public static MdocAlgorithm fromJoseAlgorithm(String algorithm)