Package org.wildfly.security.ssl
Enum Digest
- java.lang.Object
-
- java.lang.Enum<Digest>
-
- org.wildfly.security.ssl.Digest
-
- All Implemented Interfaces:
Serializable
,Comparable<Digest>
public enum Digest extends Enum<Digest>
The digest algorithm type for SSL/TLS cipher suite selection.- Author:
- David M. Lloyd
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AEAD
Deprecated.no longer used; refer to the actual digest algorithm instead.GOST89MAC
The GOST 28147-89 (MAC, not HMAC) digest algorithm.GOST94
The GOST R 34.11-94 (HMAC) digest algorithm.MD5
The MD5 digest algorithm.SHA1
The SHA-1 digest algorithm.SHA256
The SHA-256 digest algorithm.SHA384
The SHA-384 digest algorithm.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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
valueOf(String name)
Returns the enum constant of this type with the specified name.static Digest[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static Digest[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Digest c : Digest.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Digest valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- 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 instancevalue2
- 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 instancevalue2
- the second instancevalue3
- 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
-
-