|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.security.DigestUtils
Utility methods to manipulate message digests.
MessageDigest
Method Summary | |
static byte[] |
calculateDigest(java.io.InputStream in,
java.security.MessageDigest digest)
|
static byte[] |
calculateMD5Digest(java.io.InputStream in)
|
static byte[] |
calculateSHADigest(java.io.InputStream in)
|
static java.security.MessageDigest |
getMD5Digest()
Returns an instance of MD5 digest. |
static java.security.DigestInputStream |
getMD5DigestInputStream(java.io.InputStream is)
Wraps specified input stream into an digest stream that calculates the MD5 digest as it reads. |
static java.security.DigestOutputStream |
getMD5DigestOutputStream(java.io.OutputStream os)
Wraps specified output stream into an digest stream that calculates the MD5 digest as it writes. |
static java.security.MessageDigest |
getSHADigest()
Returns an instance of SHA digest. |
static java.security.DigestInputStream |
getSHADigestInputStream(java.io.InputStream is)
Wraps specified input stream into an digest stream that calculates the SHA digest as it reads. |
static java.security.DigestOutputStream |
getSHADigestOutputStream(java.io.OutputStream os)
Wraps specified output stream into an digest stream that calculates the SHA digest as it writes. |
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 getSHADigest()
public static java.security.MessageDigest getMD5Digest()
public static java.security.DigestInputStream getSHADigestInputStream(java.io.InputStream is)
is
- the input stream to wrap
public static java.security.DigestInputStream getMD5DigestInputStream(java.io.InputStream is)
is
- the input stream to wrap
public static java.security.DigestOutputStream getSHADigestOutputStream(java.io.OutputStream os)
os
- the output stream to wrap
public static java.security.DigestOutputStream getMD5DigestOutputStream(java.io.OutputStream os)
os
- the output stream to wrap
public static byte[] calculateDigest(java.io.InputStream in, java.security.MessageDigest digest) throws java.io.IOException
java.io.IOException
public static byte[] calculateSHADigest(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static byte[] calculateMD5Digest(java.io.InputStream in) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |