Module crypt.api

Enum Class CompoundAlgorithm

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

public enum CompoundAlgorithm extends Enum<CompoundAlgorithm> implements Algorithm
The enum CompoundAlgorithm provides some compound algorithms
  • Enum Constant Details

    • PBE_WITH_MD5_AND_AES

      public static final CompoundAlgorithm PBE_WITH_MD5_AND_AES
      The enum constant for the 'PBEWithMD5AndAES' algorithm
    • PBE_WITH_MD5_AND_DES

      public static final CompoundAlgorithm PBE_WITH_MD5_AND_DES
      The enum constant for the 'PBEWithMD5AndDES' algorithm
    • PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC

      public static final CompoundAlgorithm PBE_WITH_SHA1_AND_128BIT_AES_CBC_BC
      The enum constant for the 'PBEWITHSHA1AND128BITAES-CBC-BC' algorithm
    • PBE_WITH_SHA1_AND_DES_EDE

      public static final CompoundAlgorithm PBE_WITH_SHA1_AND_DES_EDE
      The enum constant for the 'PBEWithSHA1AndDESede' algorithm
    • PBKDF2_WITH_HMAC_SHA1

      public static final CompoundAlgorithm PBKDF2_WITH_HMAC_SHA1
      The enum constant for the 'PBKDF2WithHmacSHA1' algorithm
    • SHA1_WITH_RSA

      public static final CompoundAlgorithm SHA1_WITH_RSA
      The enum constant for the 'SHA1withRSA' algorithm
    • SHA256_WITH_RSA

      public static final CompoundAlgorithm SHA256_WITH_RSA
      The enum constant for the 'SHA256withRSA' algorithm
    • SHA384_WITH_RSA

      public static final CompoundAlgorithm SHA384_WITH_RSA
      The enum constant for the 'SHA384withRSA' algorithm
    • SHA512_WITH_RSA

      public static final CompoundAlgorithm SHA512_WITH_RSA
      The enum constant for the 'SHA512withRSA' algorithm
    • UNKNOWN

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

    • ITERATIONCOUNT

      public static final int ITERATIONCOUNT
      Constant for the default iteration count.
      See Also:
    • PRIVATE_KEY

      @Deprecated public static final String PRIVATE_KEY
      Deprecated.
      use instead the new constant PASSWORD. Will be removed in the next major version
      Constant for the default private key
      See Also:
    • PASSWORD

      public static final String PASSWORD
      Constant for the default password
      See Also:
    • SALT

      public static final byte[] SALT
      Constant array for the default contents of salt
  • Method Details

    • values

      public static CompoundAlgorithm[] 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 CompoundAlgorithm 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CompoundAlgorithm>