Module crypt.api

Enum Class SunJCEAlgorithm

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

public enum SunJCEAlgorithm extends Enum<SunJCEAlgorithm> implements Algorithm
The enum SunJCEAlgorithm defines the algorithm specified by the SunJCE security provider.
  • Enum Constant Details

    • Blowfish

      public static final SunJCEAlgorithm Blowfish
      The Blowfish algorithm.
    • DES

      public static final SunJCEAlgorithm DES
      The DES algorithm.
    • DESede

      public static final SunJCEAlgorithm DESede
      The DESede algorithm.
    • PBEWithMD5AndDES

      public static final SunJCEAlgorithm PBEWithMD5AndDES
      The PBEWithMD5AndDES algorithm.
    • UNKNOWN

      public static final SunJCEAlgorithm UNKNOWN
      The enum constant 'UNKNOWN' if the SunJCE security provider algorithm is unknown
  • Field Details

  • Method Details

    • values

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