public enum DigestAlgorithm extends java.lang.Enum<DigestAlgorithm>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the digest algorithm.
|
java.security.MessageDigest |
getSpi()
Returns a Service Provider Interface (SPI) corresponding to the digest algorithm.
|
static DigestAlgorithm |
valueOf(java.lang.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 MD5
public static final DigestAlgorithm SHA1
public static final DigestAlgorithm SHA256
public static final DigestAlgorithm SHA384
public static final DigestAlgorithm SHA512
public static DigestAlgorithm[] values()
for (DigestAlgorithm c : DigestAlgorithm.values()) System.out.println(c);
public static DigestAlgorithm 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 getName()
public java.security.MessageDigest getSpi()