Package com.cloudtestapi.common
Class Sign
- java.lang.Object
-
- com.cloudtestapi.common.Sign
-
public class Sign extends Object
-
-
Constructor Summary
Constructors Constructor Description Sign()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSignSource(TreeMap<String,Object> requestParams, String reqMethod, String path)static Stringsign(String secretKey, String sigStr, String sigMethod)
-
-
-
Method Detail
-
sign
public static String sign(String secretKey, String sigStr, String sigMethod) throws CloudTestSDKException
- Throws:
CloudTestSDKException
-
getSignSource
public static String getSignSource(TreeMap<String,Object> requestParams, String reqMethod, String path) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-