public enum MessageDigestAlgorithm extends java.lang.Enum<MessageDigestAlgorithm>
MessageDigest
algorithm available in Java 8 as
specified in the document "
standard names for algorithms".Enum Constant and Description |
---|
DEFAULT |
MD2 |
MD5 |
SHA_1 |
SHA_224 |
SHA_256 |
SHA_384 |
SHA_512 |
SHA1
Deprecated.
You should really consider using
SHA_1 instead except if you
really need to be compatible with some old frameworks (e.g.,
Eclipse Equinox 3.7 / Indigo) |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<java.lang.String> |
aliases |
private java.lang.String |
standardName |
Modifier and Type | Method and Description |
---|---|
static MessageDigestAlgorithm |
fromStandardName(java.lang.String digestAlgorithmName) |
java.lang.String |
standardName()
Returns the standard name of the
MessageDigest algorithm as
specified in the document "
standard names for algorithms" |
static MessageDigestAlgorithm |
valueOf(java.lang.String name)
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.
|
public static final MessageDigestAlgorithm DEFAULT
public static final MessageDigestAlgorithm MD2
public static final MessageDigestAlgorithm MD5
public static final MessageDigestAlgorithm SHA_1
public static final MessageDigestAlgorithm SHA1
SHA_1
instead except if you
really need to be compatible with some old frameworks (e.g.,
Eclipse Equinox 3.7 / Indigo)public static final MessageDigestAlgorithm SHA_224
public static final MessageDigestAlgorithm SHA_256
public static final MessageDigestAlgorithm SHA_384
public static final MessageDigestAlgorithm SHA_512
private final java.lang.String standardName
private final java.util.Set<java.lang.String> aliases
public static MessageDigestAlgorithm[] values()
for (MessageDigestAlgorithm c : MessageDigestAlgorithm.values()) System.out.println(c);
public static MessageDigestAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String standardName()
MessageDigest
algorithm as
specified in the document "
standard names for algorithms"public static MessageDigestAlgorithm fromStandardName(java.lang.String digestAlgorithmName)