|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.util.Md5Utils
public class Md5Utils
Utility methods for computing MD5 sums.
Constructor Summary | |
---|---|
Md5Utils()
|
Method Summary | |
---|---|
static byte[] |
computeMD5Hash(byte[] input)
Computes the MD5 hash of the given data and returns it as an array of bytes. |
static byte[] |
computeMD5Hash(File file)
Computes the MD5 of the given file. |
static byte[] |
computeMD5Hash(InputStream is)
Computes the MD5 hash of the data in the given input stream and returns it as an array of bytes. |
static String |
md5AsBase64(byte[] input)
Returns the MD5 in base64 for the given byte array. |
static String |
md5AsBase64(File file)
Returns the MD5 in base64 for the given file. |
static String |
md5AsBase64(InputStream is)
Returns the MD5 in base64 for the data from the given input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Md5Utils()
Method Detail |
---|
public static byte[] computeMD5Hash(InputStream is) throws IOException
IOException
public static String md5AsBase64(InputStream is) throws IOException
IOException
public static byte[] computeMD5Hash(byte[] input)
public static String md5AsBase64(byte[] input)
public static byte[] computeMD5Hash(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public static String md5AsBase64(File file) throws FileNotFoundException, IOException
FileNotFoundException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |