- java.lang.Object
-
- java.lang.Enum<AesAlgorithm>
-
- io.github.astrapi69.crypto.algorithm.AesAlgorithm
-
- All Implemented Interfaces:
Algorithm,java.io.Serializable,java.lang.Comparable<AesAlgorithm>
public enum AesAlgorithm extends java.lang.Enum<AesAlgorithm> implements Algorithm
The enumAesAlgorithmfor the Advanced Encryption Standard (AES), also known as Rijndael.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AESThe enum constant for AES algorithm.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAES_ALGORITHM_NAMEThe string constant AES_ALGORITHM_NAMEstatic intAES_KEY_LENGTHThe constant AES_KEY_LENGTHstatic intAES_KEY_MAXIMUM_LENGTHThe constant AES_KEY_MAXIMUM_LENGTH represents the maximum length of the AES algorithmstatic intAES_KEY_MEDIUM_LENGTHThe constant AES_KEY_MEDIUM_LENGTH represents the medium length of the AES algorithmstatic intAES_KEY_MINIMUM_LENGTHThe constant AES_KEY_MINIMUM_LENGTH represents the minimum length of the AES algorithm
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()Gets the algorithm for encryption or decryption.static AesAlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AesAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AES
public static final AesAlgorithm AES
The enum constant for AES algorithm.
-
-
Field Detail
-
AES_KEY_MINIMUM_LENGTH
public static final int AES_KEY_MINIMUM_LENGTH
The constant AES_KEY_MINIMUM_LENGTH represents the minimum length of the AES algorithm- See Also:
- Constant Field Values
-
AES_KEY_MEDIUM_LENGTH
public static final int AES_KEY_MEDIUM_LENGTH
The constant AES_KEY_MEDIUM_LENGTH represents the medium length of the AES algorithm- See Also:
- Constant Field Values
-
AES_KEY_MAXIMUM_LENGTH
public static final int AES_KEY_MAXIMUM_LENGTH
The constant AES_KEY_MAXIMUM_LENGTH represents the maximum length of the AES algorithm- See Also:
- Constant Field Values
-
AES_KEY_LENGTH
public static final int AES_KEY_LENGTH
The constant AES_KEY_LENGTH- See Also:
- Constant Field Values
-
AES_ALGORITHM_NAME
public static final java.lang.String AES_ALGORITHM_NAME
The string constant AES_ALGORITHM_NAME- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static AesAlgorithm[] 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 (AesAlgorithm c : AesAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AesAlgorithm valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getAlgorithm
public java.lang.String getAlgorithm()
Description copied from interface:AlgorithmGets the algorithm for encryption or decryption.- Specified by:
getAlgorithmin interfaceAlgorithm- Returns:
- the algorithm
-
-