Package org.jivesoftware.smackx.hashes
Enum HashManager.ALGORITHM
- java.lang.Object
-
- java.lang.Enum<HashManager.ALGORITHM>
-
- org.jivesoftware.smackx.hashes.HashManager.ALGORITHM
-
- All Implemented Interfaces:
Serializable
,Comparable<HashManager.ALGORITHM>
- Enclosing class:
- HashManager
public static enum HashManager.ALGORITHM extends Enum<HashManager.ALGORITHM>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLAKE2B160
BLAKE2B256
BLAKE2B384
BLAKE2B512
MD5
SHA_1
SHA_224
SHA_256
SHA_384
SHA_512
SHA3_224
SHA3_256
SHA3_384
SHA3_512
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
MD5
public static final HashManager.ALGORITHM MD5
-
SHA_1
public static final HashManager.ALGORITHM SHA_1
-
SHA_224
public static final HashManager.ALGORITHM SHA_224
-
SHA_256
public static final HashManager.ALGORITHM SHA_256
-
SHA_384
public static final HashManager.ALGORITHM SHA_384
-
SHA_512
public static final HashManager.ALGORITHM SHA_512
-
SHA3_224
public static final HashManager.ALGORITHM SHA3_224
-
SHA3_256
public static final HashManager.ALGORITHM SHA3_256
-
SHA3_384
public static final HashManager.ALGORITHM SHA3_384
-
SHA3_512
public static final HashManager.ALGORITHM SHA3_512
-
BLAKE2B160
public static final HashManager.ALGORITHM BLAKE2B160
-
BLAKE2B256
public static final HashManager.ALGORITHM BLAKE2B256
-
BLAKE2B384
public static final HashManager.ALGORITHM BLAKE2B384
-
BLAKE2B512
public static final HashManager.ALGORITHM BLAKE2B512
-
-
Method Detail
-
values
public static HashManager.ALGORITHM[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HashManager.ALGORITHM c : HashManager.ALGORITHM.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HashManager.ALGORITHM valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
Return the name of the algorithm as it is used in the XEP.- Overrides:
toString
in classEnum<HashManager.ALGORITHM>
- Returns:
- name.
-
getRecommendation
public org.jivesoftware.smackx.hashes.HashManager.AlgorithmRecommendation getRecommendation()
-
valueOfName
public static HashManager.ALGORITHM valueOfName(String s)
Compensational method for static 'valueOf' function.- Parameters:
s
- TODO javadoc me please- Returns:
- the algorithm for the given string.
- Throws:
IllegalArgumentException
- if no algorithm for the given string is known.
-
-