Package org.jivesoftware.smackx.hashes
Enum HashManager.ALGORITHM
- All Implemented Interfaces:
Serializable
,Comparable<HashManager.ALGORITHM>
- Enclosing class:
- HashManager
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.jivesoftware.smackx.hashes.HashManager.AlgorithmRecommendation
toString()
Return the name of the algorithm as it is used in the XEP.static HashManager.ALGORITHM
Returns the enum constant of this type with the specified name.static HashManager.ALGORITHM
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 Details
-
MD5
-
SHA_1
-
SHA_224
-
SHA_256
-
SHA_384
-
SHA_512
-
SHA3_224
-
SHA3_256
-
SHA3_384
-
SHA3_512
-
BLAKE2B160
-
BLAKE2B256
-
BLAKE2B384
-
BLAKE2B512
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
Return the name of the algorithm as it is used in the XEP.- Overrides:
toString
in classEnum<HashManager.ALGORITHM>
- Returns:
- name.
-
getRecommendation
-
valueOfName
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.
-