|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.util.DigestUtils
public abstract class DigestUtils
Miscellaneous methods for calculating digests.
Mainly for internal use within the framework; consider Apache Commons Codec for a more comprehensive suite of digest utilities.
org.apache.commons.codec.digest.DigestUtils
Constructor Summary | |
---|---|
DigestUtils()
|
Method Summary | |
---|---|
static StringBuilder |
appendMd5DigestAsHex(byte[] bytes,
StringBuilder builder)
Append a hexadecimal string representation of the MD5 digest of the given bytes to the given StringBuilder . |
static byte[] |
md5Digest(byte[] bytes)
Calculate the MD5 digest of the given bytes. |
static String |
md5DigestAsHex(byte[] bytes)
Return a hexadecimal string representation of the MD5 digest of the given bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigestUtils()
Method Detail |
---|
public static byte[] md5Digest(byte[] bytes)
bytes
- the bytes to calculate the digest over
public static String md5DigestAsHex(byte[] bytes)
bytes
- the bytes to calculate the digest over
public static StringBuilder appendMd5DigestAsHex(byte[] bytes, StringBuilder builder)
StringBuilder
.
bytes
- the bytes to calculate the digest overbuilder
- the string builder to append the digest to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |