Package io.cui.tools.net.ssl
Enum KeyAlgorithm
- java.lang.Object
-
- java.lang.Enum<KeyAlgorithm>
-
- io.cui.tools.net.ssl.KeyAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<KeyAlgorithm>
public enum KeyAlgorithm extends Enum<KeyAlgorithm>
Identifies the key-Algorithm for KeyMaterial-Holder. In order to provide a sensible default-set these are taken from keycloak 11.- Author:
- Oliver Wolff
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES_128https://en.wikipedia.org/wiki/Advanced_Encryption_StandardAES_192https://en.wikipedia.org/wiki/Advanced_Encryption_StandardAES_256https://en.wikipedia.org/wiki/Advanced_Encryption_StandardECDSA_P_256https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_AlgorithmECDSA_P_384https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_AlgorithmECDSA_P_521https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_AlgorithmHMAC_H_256https://en.wikipedia.org/wiki/HMACHMAC_H_384https://en.wikipedia.org/wiki/HMACHMAC_H_512https://en.wikipedia.org/wiki/HMACOTHERA concrete algorithm that is not this enum / list.RSA_2048https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_PS_256https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_PS_384https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_PS_512https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_RS_256https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_RS_384https://en.wikipedia.org/wiki/RSA_(cryptosystem)RSA_RS_512https://en.wikipedia.org/wiki/RSA_(cryptosystem)UNDEFINEDnullvalue.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static KeyAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final KeyAlgorithm UNDEFINED
nullvalue.
-
OTHER
public static final KeyAlgorithm OTHER
A concrete algorithm that is not this enum / list.
-
AES_128
public static final KeyAlgorithm AES_128
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
-
AES_192
public static final KeyAlgorithm AES_192
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
-
AES_256
public static final KeyAlgorithm AES_256
https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
-
ECDSA_P_256
public static final KeyAlgorithm ECDSA_P_256
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm
-
ECDSA_P_384
public static final KeyAlgorithm ECDSA_P_384
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm
-
ECDSA_P_521
public static final KeyAlgorithm ECDSA_P_521
https://en.wikipedia.org/wiki/Elliptic_Curve_Digital_Signature_Algorithm
-
HMAC_H_256
public static final KeyAlgorithm HMAC_H_256
https://en.wikipedia.org/wiki/HMAC
-
HMAC_H_384
public static final KeyAlgorithm HMAC_H_384
https://en.wikipedia.org/wiki/HMAC
-
HMAC_H_512
public static final KeyAlgorithm HMAC_H_512
https://en.wikipedia.org/wiki/HMAC
-
RSA_RS_256
public static final KeyAlgorithm RSA_RS_256
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_RS_384
public static final KeyAlgorithm RSA_RS_384
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_RS_512
public static final KeyAlgorithm RSA_RS_512
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_PS_256
public static final KeyAlgorithm RSA_PS_256
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_PS_384
public static final KeyAlgorithm RSA_PS_384
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_PS_512
public static final KeyAlgorithm RSA_PS_512
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
RSA_2048
public static final KeyAlgorithm RSA_2048
https://en.wikipedia.org/wiki/RSA_(cryptosystem)
-
-
Method Detail
-
values
public static KeyAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyAlgorithm c : KeyAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyAlgorithm 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 nameNullPointerException- if the argument is null
-
-