public class ParameterHelper extends Object
| Constructor and Description |
|---|
ParameterHelper() |
| Modifier and Type | Method and Description |
|---|---|
String |
composeStringToSign(MethodType method,
Map<String,String> queries) |
String |
composeUrl(String endpoint,
Map<String,String> queries,
String protocol) |
static String |
getISO8601Time(Date date) |
static String |
getUniqueNonce() |
static Date |
getUTCDate(String date) |
String |
signString(String stringToSign,
String accessKeySecret) |
public static final String ENCODING
public static String getUniqueNonce()
public static Date getUTCDate(String date) throws ParseException
ParseExceptionpublic String composeStringToSign(MethodType method, Map<String,String> queries) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String signString(String stringToSign, String accessKeySecret) throws NoSuchAlgorithmException, UnsupportedEncodingException, InvalidKeyException
public String composeUrl(String endpoint, Map<String,String> queries, String protocol) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2020. All rights reserved.