Package org.eclipse.cbi.common.security
Enum MessageDigestAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<MessageDigestAlgorithm>
,java.lang.constant.Constable
A enumeration of
MessageDigest
algorithm available in Java 8 as
specified in the document "
standard names for algorithms".-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MessageDigestAlgorithm
(String standardName, String... alias) -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageDigestAlgorithm
fromStandardName
(String digestAlgorithmName) Returns the standard name of theMessageDigest
algorithm as specified in the document " standard names for algorithms"static MessageDigestAlgorithm
Returns the enum constant of this type with the specified name.static MessageDigestAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
-
MD2
-
MD5
-
SHA_1
-
SHA1
Deprecated.You should really consider usingSHA_1
instead except if you really need to be compatible with some old frameworks (e.g., Eclipse Equinox 3.7 / Indigo)For backward compatibility with frameworks only accepting "SHA1-Digest" from Java 6 and before and reject "SHA-1-Digest". See https://bugs.eclipse.org/bugs/show_bug.cgi?id=483881 for details. -
SHA_224
-
SHA_256
-
SHA_384
-
SHA_512
-
-
Field Details
-
standardName
-
aliases
-
-
Constructor Details
-
MessageDigestAlgorithm
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
standardName
Returns the standard name of theMessageDigest
algorithm as specified in the document " standard names for algorithms"- Returns:
- the standard name of the algorithm.
-
fromStandardName
-
SHA_1
instead except if you really need to be compatible with some old frameworks (e.g., Eclipse Equinox 3.7 / Indigo)