src/main/java/com/qingstor/sdk/utils/QSSignatureUtil.java
public static String generateAuthorization(
            String accessKey,
            String secretKey,
            String method,
            String requestURI,
            Map<String, String> params,
            Map<String, String> headers) {
        String signature = generateSignature(secretKey, method, requestURI, params, headers);
        return String.format("QS %s:%s", accessKey, signature);
    }
public static String generateAuthorization(
            String accessKey,
            String secretKey,
            String method,
            String requestURI,
            Map<String, String> params,
            Map<String, String> headers) {
        String signature = generateSignature(secretKey, method, requestURI, params, headers);
        return String.format("QS %s:%s", accessKey, signature);
    }
public static String generateAuthorization ( String accessKey , String secretKey , String method , String requestURI , Map < String , String > params , Map < String , String > headers ) { String signature = generateSignature ( secretKey , method , requestURI , params , headers ) ; return String . format ( "QS %s:%s" , accessKey , signature ) ; }
Generate signature for request against QingStor.

@param accessKey:  API access key ID
@param secretKey:  API secret access key ID
@param method:     HTTP method
@param requestURI:
@param params:     HTTP request parameters
@param headers:    HTTP request headers
@return a string which can be used as value of HTTP request header field "Authorization"
directly.
<p>See <a href="https://docs.qingcloud.com/qingstor/api/common/signature.html">https://docs.qingcloud.com/qingstor/api/common/signature.html</a> for more details
about how to do signature of request against QingStor.
Generate signature for request against QingStor .