public class Ks3V4Signer extends Object
| 构造器和说明 |
|---|
Ks3V4Signer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
calcSignature(Authorization auth,
Request request,
Ks3ClientConfig ks3config) |
protected String |
calculateContentHash(Request request,
Ks3ClientConfig ks3ClientConfig) |
protected byte[] |
computeSignature(String stringToSign,
byte[] signingKey,
KSSSignerRequestParams signerRequestParams)
Step 3 of the kss Signature version 4 calculation.
|
protected String |
createCanonicalRequest(Request request,
String contentSha256,
boolean pathStyleAccess) |
protected String |
createStringToSign(String canonicalRequest,
KSSSignerRequestParams signerParams)
Step 2 of the kss Signature version 4 calculation.
|
protected InputStream |
getBinaryRequestPayloadStream(Request request) |
protected InputStream |
getBinaryRequestPayloadStreamWithoutQueryParams(Request request) |
protected String |
getCanonicalizedQueryString(Request request) |
protected String |
getCanonicalizedQueryString2(Map<String,String> parameters) |
protected String |
getCanonicalizedResourcePath(String resourcePath) |
protected String |
getCanonicalizedResourcePath(String resourcePath,
boolean urlEncode) |
protected String |
getSignedHeadersString(Request request) |
protected byte[] |
hash(InputStream input) |
byte[] |
hash(String text) |
protected byte[] |
newSigningKey(Authorization auth,
String dateStamp,
String regionName,
String serviceName)
Generates a new signing key from the given parameters and returns it.
|
protected boolean |
shouldExcludeHeaderFromSigning(String header) |
String |
sign(Authorization auth,
Request request,
Ks3ClientConfig ks3config) |
protected byte[] |
sign(byte[] data,
byte[] key,
String algorithm) |
byte[] |
sign(String stringData,
byte[] key,
String algorithm) |
public String sign(Authorization auth, Request request, Ks3ClientConfig ks3config) throws SignatureException
protected String calcSignature(Authorization auth, Request request, Ks3ClientConfig ks3config) throws SignatureException
protected String calculateContentHash(Request request, Ks3ClientConfig ks3ClientConfig) throws SignatureException
protected byte[] hash(InputStream input) throws SignatureException
protected String getCanonicalizedQueryString2(Map<String,String> parameters)
protected InputStream getBinaryRequestPayloadStream(Request request) throws SignatureException
protected InputStream getBinaryRequestPayloadStreamWithoutQueryParams(Request request) throws SignatureException
protected String createCanonicalRequest(Request request, String contentSha256, boolean pathStyleAccess)
protected String createStringToSign(String canonicalRequest, KSSSignerRequestParams signerParams) throws SignatureException
public byte[] hash(String text) throws SignatureException
protected String getCanonicalizedResourcePath(String resourcePath, boolean urlEncode)
protected boolean shouldExcludeHeaderFromSigning(String header)
protected final byte[] computeSignature(String stringToSign, byte[] signingKey, KSSSignerRequestParams signerRequestParams) throws SignatureException
protected byte[] newSigningKey(Authorization auth, String dateStamp, String regionName, String serviceName) throws SignatureException
public byte[] sign(String stringData, byte[] key, String algorithm) throws SignatureException
protected byte[] sign(byte[] data,
byte[] key,
String algorithm)
throws SignatureException
Copyright © 2024. All rights reserved.