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:
  • 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
    The MD2 message digest algorithm defined in RFC 1319.
    The MD5 message digest algorithm defined in RFC 1321.
    The SHA-1 hash algorithm defined in the FIPS PUB 180-2.
    The SHA-224 hash algorithm defined in the FIPS PUB 180-3.
    The SHA-256 hash algorithm defined in the FIPS PUB 180-2.
    The SHA-384 hash algorithm defined in the FIPS PUB 180-2.
    The SHA-512 hash algorithm defined in the FIPS PUB 180-2.
    The SHA-512 hash algorithm defined in the FIPS PUB 180-4.
    The SHA-512 hash algorithm defined in the FIPS PUB 180-4.
    The SHA3-224 hash algorithm defined in the FIPS PUB 202.
    The SHA3-256 hash algorithm defined in the FIPS PUB 202.
    The SHA3-384 hash algorithm defined in the FIPS PUB 202.
    The SHA3-512 hash algorithm defined in the FIPS PUB 202.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets this algorithm name.
    Returns the enum constant of this class with the specified name.
    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

    • MD2

      public static final MessageDigestAlgorithms MD2
      The MD2 message digest algorithm defined in RFC 1319.
    • MD5

      public static final MessageDigestAlgorithms MD5
      The MD5 message digest algorithm defined in RFC 1321.
    • SHA_1

      public static final MessageDigestAlgorithms SHA_1
      The SHA-1 hash algorithm defined in the FIPS PUB 180-2.
    • 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