| Enum Constant | Description |
|---|---|
SHA1 |
|
SHA256 |
|
SHA3_256 |
|
SHA3_384 |
|
SHA3_512 |
|
SHA512 |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getAlgorithmName() |
Get the name of the algorithm.
|
static HashType |
getByAlgorithmName(java.lang.String algorithmName) |
Given the digest/hash algorithm name, return a new instance of the appropriate
HashType. |
org.bouncycastle.crypto.Digest |
makeDigest() |
Create a new
Digest for this hash type. |
static HashType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static HashType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashType SHA1
public static final HashType SHA256
public static final HashType SHA512
public static final HashType SHA3_256
public static final HashType SHA3_384
public static final HashType SHA3_512
public static HashType[] values()
for (HashType c : HashType.values()) System.out.println(c);
public static HashType 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 org.bouncycastle.crypto.Digest makeDigest()
Digest for this hash type.public java.lang.String getAlgorithmName()