Enum Class Hash

All Implemented Interfaces:
Serializable, Comparable<Hash>, Constable

public enum Hash extends Enum<Hash>
Author:
maartenl
  • Enum Constant Details

    • SHA_1

      public static final Hash SHA_1
    • MD_2

      public static final Hash MD_2
    • MD_5

      public static final Hash MD_5
    • SHA_256

      public static final Hash SHA_256
    • SHA_384

      public static final Hash SHA_384
    • SHA_512

      public static final Hash SHA_512
  • Method Details

    • values

      public static Hash[] 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 Hash 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
    • getHash

      public String getHash()