public enum MessageDigestAlgorithm extends 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 | Method and Description |
---|---|
static MessageDigestAlgorithm |
fromStandardName(String digestAlgorithmName) |
String |
standardName()
Returns the standard name of the
MessageDigest algorithm as
specified in the document "
standard names for algorithms" |
static MessageDigestAlgorithm |
valueOf(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
public static MessageDigestAlgorithm[] values()
for (MessageDigestAlgorithm c : MessageDigestAlgorithm.values()) System.out.println(c);
public static MessageDigestAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String standardName()
MessageDigest
algorithm as
specified in the document "
standard names for algorithms"public static MessageDigestAlgorithm fromStandardName(String digestAlgorithmName)
Copyright © 2021 Eclipse Foundation. All rights reserved.