public class Sign extends Object
| Constructor and Description |
|---|
Sign() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
buildParamStr(TreeMap<String,String> requestParams,
String requestMethod) |
static byte[] |
hmac256(byte[] key,
String msg) |
static String |
makeSignPlainText(TreeMap<String,String> requestParams,
String reqMethod,
String host,
String path) |
static String |
sha256Hex(byte[] b) |
static String |
sha256Hex(String s) |
static String |
sign(String secretKey,
String sigStr,
String sigMethod) |
public static String sign(String secretKey, String sigStr, String sigMethod) throws TencentCloudSDKException
TencentCloudSDKExceptionpublic static String makeSignPlainText(TreeMap<String,String> requestParams, String reqMethod, String host, String path)
protected static String buildParamStr(TreeMap<String,String> requestParams, String requestMethod)
public static String sha256Hex(String s) throws TencentCloudSDKException
TencentCloudSDKExceptionpublic static String sha256Hex(byte[] b) throws TencentCloudSDKException
TencentCloudSDKExceptionpublic static byte[] hmac256(byte[] key,
String msg)
throws TencentCloudSDKException
TencentCloudSDKExceptionCopyright © 2021. All rights reserved.