src/main/java/com/qingstor/sdk/utils/QSSignatureUtil.java
public static String generateAuthorization(
            String accessKey,
            String secretKey,
            String strToSign) {
        String signature = generateSignature(secretKey, strToSign);
        return String.format("QS %s:%s", accessKey, signature);
    }
public static String generateAuthorization(
            String accessKey,
            String secretKey,
            String strToSign) {
        String signature = generateSignature(secretKey, strToSign);
        return String.format("QS %s:%s", accessKey, signature);
    }
public static String generateAuthorization ( String accessKey , String secretKey , String strToSign ) { String signature = generateSignature ( secretKey , strToSign ) ; 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 strToSign: strToSign
@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 .