public class CheckSumUtils extends Object
| Constructor and Description |
|---|
CheckSumUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getChecksum(InputStream in,
String algorithm) |
static String |
getChecksum(String message,
String algorithm) |
protected static InputStream |
getInputStream(String message) |
protected static InputStream |
getInputStream(String message,
String encoding) |
static String |
getMD5Checksum(InputStream in) |
static String |
getMD5Checksum(String message) |
static String |
getSHA1Checksum(InputStream in) |
static String |
getSHA1Checksum(String message) |
protected static String |
toHex(byte[] bytes) |
public CheckSumUtils()
public static String getSHA1Checksum(String message)
public static String getMD5Checksum(String message)
public static String getMD5Checksum(InputStream in) throws IOException
IOExceptionpublic static String getSHA1Checksum(InputStream in) throws IOException
IOExceptionpublic static String getChecksum(String message, String algorithm)
public static String getChecksum(InputStream in, String algorithm) throws IOException
IOExceptionprotected static InputStream getInputStream(String message)
protected static InputStream getInputStream(String message, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2010–2014 The Kuali Foundation. All rights reserved.