Enum Class Digest

java.lang.Object
java.lang.Enum<Digest>
org.wildfly.security.ssl.Digest
All Implemented Interfaces:
Serializable, Comparable<Digest>, Constable

public enum Digest extends Enum<Digest>
The digest algorithm type for SSL/TLS cipher suite selection.
Author:
David M. Lloyd
  • 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
    Deprecated.
    no longer used; refer to the actual digest algorithm instead.
    The GOST 28147-89 (MAC, not HMAC) digest algorithm.
    The GOST R 34.11-94 (HMAC) digest algorithm.
    The MD5 digest algorithm.
    The SHA-1 digest algorithm.
    The SHA-256 digest algorithm.
    The SHA-384 digest algorithm.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    in(Digest... values)
    Determine whether this instance is equal to one of the given instances.
    boolean
    in(Digest value1, Digest value2)
    Determine whether this instance is equal to one of the given instances.
    boolean
    in(Digest value1, Digest value2, Digest value3)
    Determine whether this instance is equal to one of the given instances.
    static boolean
    isFull(EnumSet<Digest> digests)
    Determine whether the given set is "full" (meaning it contains all possible values).
    static Digest
    Returns the enum constant of this class with the specified name.
    static Digest[]
    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

    • MD5

      public static final Digest MD5
      The MD5 digest algorithm.
    • SHA1

      public static final Digest SHA1
      The SHA-1 digest algorithm.
    • GOST94

      public static final Digest GOST94
      The GOST R 34.11-94 (HMAC) digest algorithm.
    • GOST89MAC

      public static final Digest GOST89MAC
      The GOST 28147-89 (MAC, not HMAC) digest algorithm.
    • SHA256

      public static final Digest SHA256
      The SHA-256 digest algorithm.
    • SHA384

      public static final Digest SHA384
      The SHA-384 digest algorithm.
    • AEAD

      @Deprecated public static final Digest AEAD
      Deprecated.
      no longer used; refer to the actual digest algorithm instead.
      AEAD (Authenticated Encryption with Associated Data) based authenticated message mode.
  • Method Details

    • values

      public static Digest[] 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 Digest 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
    • isFull

      public static boolean isFull(EnumSet<Digest> digests)
      Determine whether the given set is "full" (meaning it contains all possible values).
      Parameters:
      digests - the set
      Returns:
      true if the set is full, false otherwise
    • in

      public boolean in(Digest value1, Digest value2)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      value1 - the first instance
      value2 - the second instance
      Returns:
      true if one of the instances matches this one, false otherwise
    • in

      public boolean in(Digest value1, Digest value2, Digest value3)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      value1 - the first instance
      value2 - the second instance
      value3 - the third instance
      Returns:
      true if one of the instances matches this one, false otherwise
    • in

      public boolean in(Digest... values)
      Determine whether this instance is equal to one of the given instances.
      Parameters:
      values - the values to match against
      Returns:
      true if one of the instances matches this one, false otherwise