- All Implemented Interfaces:
Algorithm
,Serializable
,Comparable<AesAlgorithm>
,Constable
The enum
AesAlgorithm
for the Advanced Encryption Standard (AES), also known as Rijndael-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The string constant AES_ALGORITHM_NAMEstatic final int
The constant AES_KEY_LENGTHstatic final int
The constant AES_KEY_MAXIMUM_LENGTH represents the maximum length of the AES algorithmstatic final int
The constant AES_KEY_MEDIUM_LENGTH represents the medium length of the AES algorithmstatic final int
The constant AES_KEY_MINIMUM_LENGTH represents the minimum length of the AES algorithmFields inherited from interface io.github.astrapi69.crypt.api.algorithm.Algorithm
UNKNOWN_ALGORITHM_NAME
-
Method Summary
Modifier and TypeMethodDescriptionGets the algorithm for encryption or decryptionstatic AesAlgorithm
Returns the enum constant of this class with the specified name.static AesAlgorithm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AES
The enum constant for AES algorithm -
UNKNOWN
The enum constant 'UNKNOWN' if the AES algorithm is unknown
-
-
Field Details
-
AES_KEY_MINIMUM_LENGTH
public static final int AES_KEY_MINIMUM_LENGTHThe constant AES_KEY_MINIMUM_LENGTH represents the minimum length of the AES algorithm- See Also:
-
AES_KEY_MEDIUM_LENGTH
public static final int AES_KEY_MEDIUM_LENGTHThe constant AES_KEY_MEDIUM_LENGTH represents the medium length of the AES algorithm- See Also:
-
AES_KEY_MAXIMUM_LENGTH
public static final int AES_KEY_MAXIMUM_LENGTHThe constant AES_KEY_MAXIMUM_LENGTH represents the maximum length of the AES algorithm- See Also:
-
AES_KEY_LENGTH
public static final int AES_KEY_LENGTHThe constant AES_KEY_LENGTH- See Also:
-
AES_ALGORITHM_NAME
The string constant AES_ALGORITHM_NAME- See Also:
-
-
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
-
getAlgorithm
Gets the algorithm for encryption or decryption- Specified by:
getAlgorithm
in interfaceAlgorithm
- Returns:
- the algorithm
-