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
TencentCloudSDKException
public 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
TencentCloudSDKException
public static String sha256Hex(byte[] b) throws TencentCloudSDKException
TencentCloudSDKException
public static byte[] hmac256(byte[] key, String msg) throws TencentCloudSDKException
TencentCloudSDKException
Copyright © 2020. All rights reserved.