public abstract class AuthUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
protected static String |
bytesToHex(byte[] bytes)
Convert byte array to Hex.
|
protected static String |
generateHex(String data)
Generate Hex code of String.
|
protected static byte[] |
getSignatureKey(String key,
String date,
String regionName,
String serviceName)
Generate AWS signature key.
|
protected static String |
getTimestamp(Date date)
Get timestamp.
|
protected static byte[] |
HmacSHA256(byte[] key,
String data)
Apply HmacSHA256 on data using given key.
|
protected static String generateHex(String data)
data - protected static String bytesToHex(byte[] bytes)
bytes - protected static byte[] HmacSHA256(byte[] key,
String data)
throws Exception
data - key - Exceptionprotected static byte[] getSignatureKey(String key, String date, String regionName, String serviceName) throws Exception
key - date - regionName - serviceName - ExceptionCopyright © 2021. All rights reserved.