public static enum HashManager.ALGORITHM extends Enum<HashManager.ALGORITHM>
Enum Constant and Description |
---|
BLAKE2B160 |
BLAKE2B256 |
BLAKE2B384 |
BLAKE2B512 |
MD5 |
SHA_1 |
SHA_224 |
SHA_256 |
SHA_384 |
SHA_512 |
SHA3_224 |
SHA3_256 |
SHA3_384 |
SHA3_512 |
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smackx.hashes.HashManager.AlgorithmRecommendation |
getRecommendation() |
String |
toString()
Return the name of the algorithm as it is used in the XEP.
|
static HashManager.ALGORITHM |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashManager.ALGORITHM |
valueOfName(String s)
Compensational method for static 'valueOf' function.
|
static HashManager.ALGORITHM[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HashManager.ALGORITHM MD5
public static final HashManager.ALGORITHM SHA_1
public static final HashManager.ALGORITHM SHA_224
public static final HashManager.ALGORITHM SHA_256
public static final HashManager.ALGORITHM SHA_384
public static final HashManager.ALGORITHM SHA_512
public static final HashManager.ALGORITHM SHA3_224
public static final HashManager.ALGORITHM SHA3_256
public static final HashManager.ALGORITHM SHA3_384
public static final HashManager.ALGORITHM SHA3_512
public static final HashManager.ALGORITHM BLAKE2B160
public static final HashManager.ALGORITHM BLAKE2B256
public static final HashManager.ALGORITHM BLAKE2B384
public static final HashManager.ALGORITHM BLAKE2B512
public static HashManager.ALGORITHM[] values()
for (HashManager.ALGORITHM c : HashManager.ALGORITHM.values()) System.out.println(c);
public static HashManager.ALGORITHM 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 toString()
toString
in class Enum<HashManager.ALGORITHM>
public org.jivesoftware.smackx.hashes.HashManager.AlgorithmRecommendation getRecommendation()
public static HashManager.ALGORITHM valueOfName(String s)
s
- IllegalArgumentException
- if no algorithm for the given string is known.