Module crypt.api

Enum Class AesAlgorithm

java.lang.Object
java.lang.Enum<AesAlgorithm>
io.github.astrapi69.crypt.api.algorithm.AesAlgorithm
All Implemented Interfaces:
Algorithm, Serializable, Comparable<AesAlgorithm>, Constable

public enum AesAlgorithm extends Enum<AesAlgorithm> implements Algorithm
The enum AesAlgorithm for the Advanced Encryption Standard (AES), also known as Rijndael
  • Enum Constant Details

    • AES

      public static final AesAlgorithm AES
      The enum constant for AES algorithm
    • UNKNOWN

      public static final AesAlgorithm UNKNOWN
      The enum constant 'UNKNOWN' if the AES algorithm is unknown
  • Field Details

    • 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:
    • 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:
    • 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:
    • AES_KEY_LENGTH

      public static final int AES_KEY_LENGTH
      The constant AES_KEY_LENGTH
      See Also:
    • AES_ALGORITHM_NAME

      public static final String AES_ALGORITHM_NAME
      The string constant AES_ALGORITHM_NAME
      See Also:
  • Method Details

    • values

      public static AesAlgorithm[] 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

      public static AesAlgorithm valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getAlgorithm

      public String getAlgorithm()
      Gets the algorithm for encryption or decryption
      Specified by:
      getAlgorithm in interface Algorithm
      Returns:
      the algorithm