|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.common.digest.Digester
public final class Digester
Utility class for generating hashes for values using several algorithms. It uses the MessageDigest
as
underlying mechanism.
Method Summary | |
---|---|
String |
digestHex()
Returns the hex representation of the digest of all data that has been provided so far. |
static String |
md5Hex(String input)
Utility method that creates a hex string of the MD5 hash of the given input |
static Digester |
newInstance(String algorithm)
Creates a new Digester instance for the given algorithm . |
static Digester |
newMD5Instance()
Creates a new Digester instance for the MD5 Algorithm |
Digester |
update(byte[] additionalData)
Update the Digester with given additionalData . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Digester newInstance(String algorithm)
algorithm
.
algorithm
- The algorithm to use, e.g. "MD5"
public static Digester newMD5Instance()
public static String md5Hex(String input)
input
input
- The value to create a MD5 hash for
input
public Digester update(byte[] additionalData)
additionalData
.
additionalData
- The data to add to the digest source
this
for method chainingpublic String digestHex()
update(byte[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |