Enum Class MessageDigestAlgorithms

java.lang.Object
java.lang.Enum<MessageDigestAlgorithms>
org.seppiko.commons.utils.crypto.MessageDigestAlgorithms
All Implemented Interfaces:
Serializable, Comparable<MessageDigestAlgorithms>, Constable

public enum MessageDigestAlgorithms extends Enum<MessageDigestAlgorithms>
Standard MessageDigest algorithm names from the Java Cryptography Architecture Standard Algorithm Name Documentation.
Author:
Leonard Woo
See Also:
  • Enum Constant Details

    • MD2

      @Deprecated public static final MessageDigestAlgorithms MD2
      Deprecated.
      The MD2 message digest algorithm defined in RFC 1319. This Algorithm is unsafe.
    • MD5

      @Deprecated public static final MessageDigestAlgorithms MD5
      Deprecated.
      The MD5 message digest algorithm defined in RFC 1321. This Algorithm is unsafe.
    • SHA_1

      @Deprecated public static final MessageDigestAlgorithms SHA_1
      Deprecated.
      The SHA-1 hash algorithm defined in the FIPS PUB 180-2. This Algorithm is unsafe.
    • SHA_224

      public static final MessageDigestAlgorithms SHA_224
      The SHA-224 hash algorithm defined in the FIPS PUB 180-3.
    • SHA_256

      public static final MessageDigestAlgorithms SHA_256
      The SHA-256 hash algorithm defined in the FIPS PUB 180-2.
    • SHA_384

      public static final MessageDigestAlgorithms SHA_384
      The SHA-384 hash algorithm defined in the FIPS PUB 180-2.
    • SHA_512

      public static final MessageDigestAlgorithms SHA_512
      The SHA-512 hash algorithm defined in the FIPS PUB 180-2.
    • SHA_512_224

      public static final MessageDigestAlgorithms SHA_512_224
      The SHA-512 hash algorithm defined in the FIPS PUB 180-4.
    • SHA_512_256

      public static final MessageDigestAlgorithms SHA_512_256
      The SHA-512 hash algorithm defined in the FIPS PUB 180-4.
    • SHA3_224

      public static final MessageDigestAlgorithms SHA3_224
      The SHA3-224 hash algorithm defined in the FIPS PUB 202.
    • SHA3_256

      public static final MessageDigestAlgorithms SHA3_256
      The SHA3-256 hash algorithm defined in the FIPS PUB 202.
    • SHA3_384

      public static final MessageDigestAlgorithms SHA3_384
      The SHA3-384 hash algorithm defined in the FIPS PUB 202.
    • SHA3_512

      public static final MessageDigestAlgorithms SHA3_512
      The SHA3-512 hash algorithm defined in the FIPS PUB 202.
  • Method Details

    • values

      public static MessageDigestAlgorithms[] 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 MessageDigestAlgorithms 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
    • getName

      public String getName()
      Gets this algorithm name.
      Returns:
      this algorithm name