Enum KeyEncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<KeyEncryptionAlgorithm>
-
- io.jans.as.model.crypto.encryption.KeyEncryptionAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyEncryptionAlgorithm>
public enum KeyEncryptionAlgorithm extends Enum<KeyEncryptionAlgorithm>
- Version:
- September 13, 2021
- Author:
- Javier Rojas Blum Date: 12.03.2012, Sergey Manoylo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A128GCMKW
A128KW
A192GCMKW
A192KW
A256GCMKW
A256KW
DIR
ECDH_ES
ECDH_ES_PLUS_A128KW
ECDH_ES_PLUS_A192KW
ECDH_ES_PLUS_A256KW
PBES2_HS256_PLUS_A128KW
PBES2_HS384_PLUS_A192KW
PBES2_HS512_PLUS_A256KW
RSA_OAEP
RSA_OAEP_256
RSA1_5
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyEncryptionAlgorithm
fromName(String name)
Algorithm
getAlg()
String
getAlgorithm()
EllipticEdvardsCurve
getCurve()
AlgorithmFamily
getFamily()
String
getName()
String
toString()
static KeyEncryptionAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyEncryptionAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA1_5
public static final KeyEncryptionAlgorithm RSA1_5
-
RSA_OAEP
public static final KeyEncryptionAlgorithm RSA_OAEP
-
RSA_OAEP_256
public static final KeyEncryptionAlgorithm RSA_OAEP_256
-
ECDH_ES
public static final KeyEncryptionAlgorithm ECDH_ES
-
ECDH_ES_PLUS_A128KW
public static final KeyEncryptionAlgorithm ECDH_ES_PLUS_A128KW
-
ECDH_ES_PLUS_A192KW
public static final KeyEncryptionAlgorithm ECDH_ES_PLUS_A192KW
-
ECDH_ES_PLUS_A256KW
public static final KeyEncryptionAlgorithm ECDH_ES_PLUS_A256KW
-
A128KW
public static final KeyEncryptionAlgorithm A128KW
-
A192KW
public static final KeyEncryptionAlgorithm A192KW
-
A256KW
public static final KeyEncryptionAlgorithm A256KW
-
A128GCMKW
public static final KeyEncryptionAlgorithm A128GCMKW
-
A192GCMKW
public static final KeyEncryptionAlgorithm A192GCMKW
-
A256GCMKW
public static final KeyEncryptionAlgorithm A256GCMKW
-
PBES2_HS256_PLUS_A128KW
public static final KeyEncryptionAlgorithm PBES2_HS256_PLUS_A128KW
-
PBES2_HS384_PLUS_A192KW
public static final KeyEncryptionAlgorithm PBES2_HS384_PLUS_A192KW
-
PBES2_HS512_PLUS_A256KW
public static final KeyEncryptionAlgorithm PBES2_HS512_PLUS_A256KW
-
DIR
public static final KeyEncryptionAlgorithm DIR
-
-
Method Detail
-
values
public static KeyEncryptionAlgorithm[] 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 (KeyEncryptionAlgorithm c : KeyEncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyEncryptionAlgorithm 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
-
getAlg
public Algorithm getAlg()
-
getName
public String getName()
-
getFamily
public AlgorithmFamily getFamily()
-
getAlgorithm
public String getAlgorithm()
-
getCurve
public EllipticEdvardsCurve getCurve()
-
fromName
public static KeyEncryptionAlgorithm fromName(String name)
-
toString
public String toString()
- Overrides:
toString
in classEnum<KeyEncryptionAlgorithm>
-
-