Enum Class HashType

java.lang.Object
java.lang.Enum<HashType>
com.mimecast.robin.mime.HashType
All Implemented Interfaces:
Serializable, Comparable<HashType>, Constable

public enum HashType extends Enum<HashType>
Hash type container.
  • Enum Constant Details

    • SHA_256

      public static final HashType SHA_256
      SHA-256 hash type.
    • SHA_1

      public static final HashType SHA_1
      SHA-1 hash type.
    • MD_5

      public static final HashType MD_5
      MD5 hash type.
  • Field Details

    • key

      private final String key
      Key container.
  • Constructor Details

    • HashType

      private HashType(String key)
      Constructs new hash type with given string.
      Parameters:
      key - String name of hash type.
  • Method Details

    • values

      public static HashType[] 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 HashType 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
    • getKey

      public String getKey()
      Gets key.
      Returns:
      String name of hash type.