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

@Deprecated(forRemoval=true) public enum CompoundAlgorithm extends Enum<CompoundAlgorithm> implements Algorithm
Deprecated, for removal: This API element is subject to removal in a future version.
use instead the same name enum class in the package io.github.astrapi69.crypt.api.algorithm.compound.
Note: will be removed in next minor version
The enum CompoundAlgorithm provides some compound algorithms
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'PBEWithMD5AndAES' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'PBEWithMD5AndDES' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'PBEWITHSHA1AND128BITAES-CBC-BC' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'PBEWithSHA1AndDESede' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'PBKDF2WithHmacSHA1' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'SHA1withRSA' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'SHA256withRSA' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'SHA384withRSA' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant for the 'SHA512withRSA' algorithm
    Deprecated, for removal: This API element is subject to removal in a future version.
    The enum constant 'UNKNOWN' if the compound algorithm is unknown
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constant for the default iteration count.
    static final String
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constant for the default password
    static final String
    Deprecated.
    use instead the new constant PASSWORD.
    static final byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constant array for the default contents of salt

    Fields inherited from interface io.github.astrapi69.crypt.api.algorithm.Algorithm

    UNKNOWN_ALGORITHM_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the algorithm for encryption or decryption
    Deprecated, for removal: This API element is subject to removal in a future version.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the enum constant of this class with the specified name.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PBE_WITH_MD5_AND_AES

      public static final CompoundAlgorithm PBE_WITH_MD5_AND_AES
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'PBEWithMD5AndAES' algorithm
    • PBE_WITH_MD5_AND_DES

      public static final CompoundAlgorithm PBE_WITH_MD5_AND_DES
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'PBEWithSHA1AndDESede' algorithm
    • PBKDF2_WITH_HMAC_SHA1

      public static final CompoundAlgorithm PBKDF2_WITH_HMAC_SHA1
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'PBKDF2WithHmacSHA1' algorithm
    • SHA1_WITH_RSA

      public static final CompoundAlgorithm SHA1_WITH_RSA
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'SHA1withRSA' algorithm
    • SHA256_WITH_RSA

      public static final CompoundAlgorithm SHA256_WITH_RSA
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'SHA256withRSA' algorithm
    • SHA384_WITH_RSA

      public static final CompoundAlgorithm SHA384_WITH_RSA
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'SHA384withRSA' algorithm
    • SHA512_WITH_RSA

      public static final CompoundAlgorithm SHA512_WITH_RSA
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant for the 'SHA512withRSA' algorithm
    • UNKNOWN

      public static final CompoundAlgorithm UNKNOWN
      Deprecated, for removal: This API element is subject to removal in a future version.
      The enum constant 'UNKNOWN' if the compound algorithm is unknown
  • Field Details

    • ITERATIONCOUNT

      public static final int ITERATIONCOUNT
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constant for the default password
      See Also:
    • SALT

      public static final byte[] SALT
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constant array for the default contents of salt
  • Method Details

    • values

      public static CompoundAlgorithm[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the algorithm for encryption or decryption
      Specified by:
      getAlgorithm in interface Algorithm
      Returns:
      the algorithm
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class Enum<CompoundAlgorithm>