public enum HashingAlgorithm extends Enum<HashingAlgorithm>
| Enum Constant and Description |
|---|
MD2 |
MD4 |
MD5 |
RIPEMD_160 |
SHA_1 |
SHA_224 |
SHA_256 |
SHA_384 |
SHA_512 |
SHA_512_224 |
SHA_512_256 |
SHA3_224 |
SHA3_256 |
SHA3_384 |
SHA3_512 |
Tiger |
Whirlpool |
| Modifier and Type | Method and Description |
|---|---|
static HashingAlgorithm |
from(int code) |
static HashingAlgorithm |
from(String name) |
int |
getCode() |
String |
toString() |
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 MD2
public static final HashingAlgorithm MD4
public static final HashingAlgorithm MD5
public static final HashingAlgorithm SHA_1
public static final HashingAlgorithm SHA_224
public static final HashingAlgorithm SHA_256
public static final HashingAlgorithm SHA_384
public static final HashingAlgorithm SHA_512
public static final HashingAlgorithm RIPEMD_160
public static final HashingAlgorithm Tiger
public static final HashingAlgorithm Whirlpool
public static final HashingAlgorithm SHA_512_224
public static final HashingAlgorithm SHA_512_256
public static final HashingAlgorithm SHA3_224
public static final HashingAlgorithm SHA3_256
public static final HashingAlgorithm SHA3_384
public static final HashingAlgorithm SHA3_512
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 int getCode()
public String toString()
toString in class Enum<HashingAlgorithm>public static HashingAlgorithm from(String name) throws IllegalArgumentException
IllegalArgumentExceptionpublic static HashingAlgorithm from(int code) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2023. All rights reserved.