- All Implemented Interfaces:
Serializable,Comparable<KeyAlgorithm>,Constable
Identifies the key-Algorithm for KeyMaterial-Holder. In order to provide a
sensible default-set these are taken from keycloak 11.
- Author:
- Oliver Wolff
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionhttps://en.wikipedia.org/wiki/Advanced_Encryption_Standardhttps://en.wikipedia.org/wiki/Advanced_Encryption_Standardhttps://en.wikipedia.org/wiki/Advanced_Encryption_Standardhttps://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithmhttps://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithmhttps://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithmhttps://en.wikipedia.org/wiki/HMAChttps://en.wikipedia.org/wiki/HMAChttps://en.wikipedia.org/wiki/HMACA concrete algorithm that is not this enum / list.https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)https://en.wikipedia.org/wiki/RSA_(cryptosystem)nullvalue. -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyAlgorithmReturns the enum constant of this class with the specified name.static KeyAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
nullvalue. -
OTHER
A concrete algorithm that is not this enum / list. -
AES_128
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard -
AES_192
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard -
AES_256
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard -
ECDSA_P_256
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm -
ECDSA_P_384
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm -
ECDSA_P_521
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm -
HMAC_H_256
https://en.wikipedia.org/wiki/HMAC -
HMAC_H_384
https://en.wikipedia.org/wiki/HMAC -
HMAC_H_512
https://en.wikipedia.org/wiki/HMAC -
RSA_RS_256
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_RS_384
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_RS_512
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_PS_256
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_PS_384
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_PS_512
https://en.wikipedia.org/wiki/RSA_(cryptosystem) -
RSA_2048
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
-
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
-