public class AWS3Signer extends AbstractAWSSigner
| Modifier and Type | Field and Description |
|---|---|
protected static DateUtils |
dateUtils
Deprecated.
|
EMPTY_STRING_SHA256_HEX| Constructor and Description |
|---|
AWS3Signer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials)
Adds session credentials to the request given.
|
protected String |
getCanonicalizedHeadersForStringToSign(SignableRequest<?> request) |
protected List<String> |
getHeadersForStringToSign(SignableRequest<?> request) |
protected boolean |
shouldUseHttpsScheme(SignableRequest<?> request) |
void |
sign(SignableRequest<?> request,
AWSCredentials credentials)
Signs the specified request with the AWS3 signing protocol by using the
AWS account credentials specified when this object was constructed and
adding the required AWS3 headers to the request.
|
getBinaryRequestPayload, getBinaryRequestPayloadStream, getBinaryRequestPayloadStreamWithoutQueryParams, getBinaryRequestPayloadWithoutQueryParams, getCanonicalizedEndpoint, getCanonicalizedQueryString, getCanonicalizedQueryString, getCanonicalizedResourcePath, getCanonicalizedResourcePath, getRequestPayload, getRequestPayloadWithoutQueryParams, getSignatureDate, getTimeOffset, hash, hash, hash, newString, sanitizeCredentials, sign, sign, signAndBase64Encode, signAndBase64Encode, signWithMac@Deprecated protected static final DateUtils dateUtils
public void sign(SignableRequest<?> request, AWSCredentials credentials) throws SdkClientException
request - The request to sign.credentials - The credentials to sign the request with.SdkClientExceptionprotected List<String> getHeadersForStringToSign(SignableRequest<?> request)
protected String getCanonicalizedHeadersForStringToSign(SignableRequest<?> request)
protected boolean shouldUseHttpsScheme(SignableRequest<?> request) throws SdkClientException
SdkClientExceptionprotected void addSessionCredentials(SignableRequest<?> request, AWSSessionCredentials credentials)
AbstractAWSSigneraddSessionCredentials in class AbstractAWSSignerrequest - The request to add session credentials information tocredentials - The session credentials to add to the requestCopyright © 2020. All rights reserved.