Enum Constant and Description |
---|
ED2K |
MD5 |
SHA1 |
SHA256 |
SHA384 |
SHA512 |
TTH |
Modifier and Type | Field and Description |
---|---|
int |
bitmask
Bitmask for aggregation.
|
int |
hashLength |
java.lang.String |
javaName
Name for MessageDigest purposes.
|
Modifier and Type | Method and Description |
---|---|
java.security.MessageDigest |
get() |
void |
recycle(java.security.MessageDigest md) |
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 MD5
public static final HashType SHA256
public static final HashType SHA384
public static final HashType SHA512
public static final HashType ED2K
public static final HashType TTH
public final int bitmask
public final java.lang.String javaName
public final int hashLength
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 java.security.MessageDigest get() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public void recycle(java.security.MessageDigest md)