Package org.keycloak.mdoc
Enum Class MdocAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<MdocAlgorithm>,Constable
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.
-
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 MdocAlgorithmfromJoseAlgorithm(String algorithm) intcom.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifierstatic MdocAlgorithmReturns the enum constant of this class with the specified name.static MdocAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RS256
-
RS384
-
RS512
-
PS256
-
PS384
-
PS512
-
ES256
-
ES384
-
ES512
-
EDDSA
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getJoseAlgorithm
-
getCoseAlgorithmIdentifier
public int getCoseAlgorithmIdentifier() -
toCoseAlgorithmIdentifier
public com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier toCoseAlgorithmIdentifier() -
getSupportedJoseAlgorithms
-
fromJoseAlgorithm
-