public enum MdAlgorithm extends java.lang.Enum<MdAlgorithm> implements Algorithm
MdAlgorithm defines the MessageDigest algorithm.| Enum Constant and Description |
|---|
MD2
The enum constant for MD2 algorithm.
|
MD4
The enum constant for MD4 algorithm.
|
MD5
The enum constant for MD5 algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm for encryption or decryption.
|
static MdAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MdAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MdAlgorithm MD2
public static final MdAlgorithm MD4
public static final MdAlgorithm MD5
public static MdAlgorithm[] values()
for (MdAlgorithm c : MdAlgorithm.values()) System.out.println(c);
public static MdAlgorithm 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 getAlgorithm()
AlgorithmgetAlgorithm in interface Algorithm