Package | Description |
---|---|
org.jivesoftware.smackx.hashes |
XEP-0300 - Use of cryptographic hash functions.
|
org.jivesoftware.smackx.hashes.element |
XEP-0300 - Use of cryptographic hash functions.
|
Modifier and Type | Field and Description |
---|---|
static List<HashManager.ALGORITHM> |
HashManager.RECOMMENDED |
Modifier and Type | Method and Description |
---|---|
static HashManager.ALGORITHM |
HashManager.ALGORITHM.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashManager.ALGORITHM |
HashManager.ALGORITHM.valueOfName(String s)
Compensational method for static 'valueOf' function.
|
static HashManager.ALGORITHM[] |
HashManager.ALGORITHM.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static String |
HashManager.asFeature(HashManager.ALGORITHM algorithm)
Return the feature name of the given algorithm.
|
static HashElement |
HashManager.assembleHashElement(HashManager.ALGORITHM algorithm,
byte[] hash) |
static HashElement |
HashManager.calculateHashElement(HashManager.ALGORITHM algorithm,
byte[] data) |
static MessageDigest |
HashManager.getMessageDigest(HashManager.ALGORITHM algorithm) |
static byte[] |
HashManager.hash(HashManager.ALGORITHM algorithm,
byte[] data)
Calculate the hash sum of data using algorithm.
|
static byte[] |
HashManager.hash(HashManager.ALGORITHM algorithm,
String data) |
Modifier and Type | Method and Description |
---|---|
void |
HashManager.addAlgorithmsToFeatures(List<HashManager.ALGORITHM> algorithms)
Announce support for the given list of algorithms.
|
Modifier and Type | Method and Description |
---|---|
HashManager.ALGORITHM |
HashElement.getAlgorithm()
Return the hash algorithm used in this HashElement.
|
Constructor and Description |
---|
HashElement(HashManager.ALGORITHM algorithm,
byte[] hash)
Create a HashElement from pre-calculated values.
|
HashElement(HashManager.ALGORITHM algorithm,
String hashB64)
Create a HashElement from pre-calculated values.
|