Enum AesAlgorithm
- 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 enumAesAlgorithm
for the Advanced Encryption Standard (AES), also known as Rijndael.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AES
The enum constant for AES algorithm.
-
Field Summary
Fields Modifier and Type Field Description static int
AES_KEY_LENGTH
The Constant AES_KEY_LENGTH.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAlgorithm()
Gets the algorithm for encryption or decryption.static AesAlgorithm
valueOf(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_LENGTH
public static final int AES_KEY_LENGTH
The Constant AES_KEY_LENGTH.- 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:Algorithm
Gets the algorithm for encryption or decryption.- Specified by:
getAlgorithm
in interfaceAlgorithm
- Returns:
- the algorithm
-
-