public enum HashingAlgorithm extends Enum<HashingAlgorithm>
MessageDigest
Enum Constant and Description |
---|
MD5
MD5.
|
SHA1
SHA-1.
|
SHA256
SHA-256.
|
SHA384
SHA-384.
|
SHA512
SHA-512.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Gets the algorithm for this enumerated type.
|
static HashingAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashingAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashingAlgorithm MD5
public static final HashingAlgorithm SHA1
public static final HashingAlgorithm SHA256
public static final HashingAlgorithm SHA384
public static final HashingAlgorithm SHA512
public static HashingAlgorithm[] values()
for (HashingAlgorithm c : HashingAlgorithm.values()) System.out.println(c);
public static HashingAlgorithm 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 getAlgorithm()
MessageDigest
.Copyright © 2008–2018. All rights reserved.