Package org.wildfly.security.ssl
Enum Class Digest
- All Implemented Interfaces:
Serializable,Comparable<Digest>,Constable
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 ConstantsEnum ConstantDescriptionDeprecated.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 TypeMethodDescriptionbooleanDetermine whether this instance is equal to one of the given instances.booleanDetermine whether this instance is equal to one of the given instances.booleanDetermine whether this instance is equal to one of the given instances.static booleanDetermine whether the given set is "full" (meaning it contains all possible values).static DigestReturns the enum constant of this class with the specified name.static Digest[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MD5
The MD5 digest algorithm. -
SHA1
The SHA-1 digest algorithm. -
GOST94
The GOST R 34.11-94 (HMAC) digest algorithm. -
GOST89MAC
The GOST 28147-89 (MAC, not HMAC) digest algorithm. -
SHA256
The SHA-256 digest algorithm. -
SHA384
The SHA-384 digest algorithm. -
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
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
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 nameNullPointerException- if the argument is null
-
isFull
Determine whether the given set is "full" (meaning it contains all possible values).- Parameters:
digests- the set- Returns:
trueif the set is full,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
value1- the first instancevalue2- the second instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
value1- the first instancevalue2- the second instancevalue3- the third instance- Returns:
trueif one of the instances matches this one,falseotherwise
-
in
Determine whether this instance is equal to one of the given instances.- Parameters:
values- the values to match against- Returns:
trueif one of the instances matches this one,falseotherwise
-