public enum DigestAlgorithm extends Enum<DigestAlgorithm>
Java class for DigestAlgorithm.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="DigestAlgorithm"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="sha1"/> <enumeration value="sha256"/> <enumeration value="sha512"/> <enumeration value="ripemd160"/> </restriction> </simpleType>
Enum Constant and Description |
---|
RIPEMD_160 |
SHA_1 |
SHA_256 |
SHA_512 |
Modifier and Type | Method and Description |
---|---|
static DigestAlgorithm |
fromValue(String v) |
String |
value() |
static DigestAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DigestAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DigestAlgorithm SHA_1
public static final DigestAlgorithm SHA_256
public static final DigestAlgorithm SHA_512
public static final DigestAlgorithm RIPEMD_160
public static DigestAlgorithm[] values()
for (DigestAlgorithm c : DigestAlgorithm.values()) System.out.println(c);
public static DigestAlgorithm 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 value()
public static DigestAlgorithm fromValue(String v)