public class AWSCommonUtils
extends java.lang.Object
| Constructor and Description |
|---|
AWSCommonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeBase64(byte[] rawBytes)
Decodes the given base 64 raw bytes
|
static java.lang.String |
encodeHex(byte[] rawBytes)
Encodes the given raw bytes into hex
|
static byte[] |
getContentsMD5AsBytes(java.io.File file)
Generates the MD5 hash of the file provided
|
static byte[] |
getContentsMD5AsBytes(java.lang.String contents)
Compute the MD5 hash of the provided String
|
public static byte[] getContentsMD5AsBytes(java.io.File file)
file - public static byte[] getContentsMD5AsBytes(java.lang.String contents)
contents - The String whose MD5 sun is to be computedpublic static java.lang.String encodeHex(byte[] rawBytes)
throws java.io.UnsupportedEncodingException
rawBytes - java.io.UnsupportedEncodingExceptionpublic static byte[] decodeBase64(byte[] rawBytes)
throws java.io.UnsupportedEncodingException
rawBytes - java.io.UnsupportedEncodingException