|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.util.DigestUtils
Utility class for MessageDigests
Method Summary | |
static java.security.MessageDigest |
getDigest(DigestAlgoEnum digest)
Return a java.security.MessageDigest |
static java.security.MessageDigest |
getDigest(DigestAlgoEnum digest,
java.lang.String provider)
Return a java.security.MessageDigest |
static byte[] |
md5(byte[] bytes)
Calculate and return the MD5 digest of the given data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.security.MessageDigest getDigest(DigestAlgoEnum digest)
digest
- a DigestAlgoEnum representing the type of digest sought
JsdsiRuntimeException
- on errorpublic static java.security.MessageDigest getDigest(DigestAlgoEnum digest, java.lang.String provider)
digest
- a DigestAlgoEnum representing the type of digest soughtprovider
- the Provider to use
JsdsiRuntimeException
- on errorpublic static byte[] md5(byte[] bytes)
bytes
- data to digest
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |