public enum HashAlgorithm extends java.lang.Enum<HashAlgorithm> implements Algorithm
HashAlgorithm represents the one-way conversion hash algorithms.| Enum Constant and Description |
|---|
SHA_1
The enum constant for SHA-1 algorithm.
|
SHA_256
The enum constant for SHA-256 algorithm.
|
SHA_384
The enum constant for SHA-384 algorithm.
|
SHA_512
The enum constant for SHA-512 algorithm.
|
SHA1
The enum constant for SHA1 algorithm.
|
SHA256
The enum constant for SHA256 algorithm.
|
SHA384
The enum constant for SHA384 algorithm.
|
SHA512
The enum constant for SHA512 algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm for encryption or decryption.
|
static HashAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashAlgorithm SHA_1
public static final HashAlgorithm SHA_256
public static final HashAlgorithm SHA_384
public static final HashAlgorithm SHA_512
public static final HashAlgorithm SHA1
public static final HashAlgorithm SHA256
public static final HashAlgorithm SHA384
public static final HashAlgorithm SHA512
public static HashAlgorithm[] values()
for (HashAlgorithm c : HashAlgorithm.values()) System.out.println(c);
public static HashAlgorithm 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