Package com.amazonaws.auth
Class AWS3Signer
- java.lang.Object
-
- com.amazonaws.auth.AbstractAWSSigner
-
- com.amazonaws.auth.AWS3Signer
-
- All Implemented Interfaces:
Signer
public class AWS3Signer extends AbstractAWSSigner
Signer implementation that signs requests with the AWS3 signing protocol.
-
-
Field Summary
Fields Modifier and Type Field Description protected static DateUtilsdateUtilsDeprecated.-
Fields inherited from class com.amazonaws.auth.AbstractAWSSigner
EMPTY_STRING_SHA256_HEX
-
-
Constructor Summary
Constructors Constructor Description AWS3Signer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSessionCredentials(SignableRequest<?> request, AWSSessionCredentials credentials)Adds session credentials to the request given.protected StringgetCanonicalizedHeadersForStringToSign(SignableRequest<?> request)protected List<String>getHeadersForStringToSign(SignableRequest<?> request)protected booleanshouldUseHttpsScheme(SignableRequest<?> request)voidsign(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.-
Methods inherited from class com.amazonaws.auth.AbstractAWSSigner
getBinaryRequestPayload, getBinaryRequestPayloadStream, getBinaryRequestPayloadStreamWithoutQueryParams, getBinaryRequestPayloadWithoutQueryParams, getCanonicalizedEndpoint, getCanonicalizedQueryString, getCanonicalizedQueryString, getCanonicalizedResourcePath, getCanonicalizedResourcePath, getRequestPayload, getRequestPayloadWithoutQueryParams, getSignatureDate, getTimeOffset, hash, hash, hash, newString, sanitizeCredentials, sign, sign, signAndBase64Encode, signAndBase64Encode, signWithMac
-
-
-
-
Field Detail
-
dateUtils
@Deprecated protected static final DateUtils dateUtils
Deprecated.
-
-
Method Detail
-
sign
public void sign(SignableRequest<?> request, AWSCredentials credentials) throws AmazonClientException
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.- Parameters:
request- The request to sign.credentials- The credentials to sign the request with.- Throws:
AmazonClientException
-
getHeadersForStringToSign
protected List<String> getHeadersForStringToSign(SignableRequest<?> request)
-
getCanonicalizedHeadersForStringToSign
protected String getCanonicalizedHeadersForStringToSign(SignableRequest<?> request)
-
shouldUseHttpsScheme
protected boolean shouldUseHttpsScheme(SignableRequest<?> request) throws AmazonClientException
- Throws:
AmazonClientException
-
addSessionCredentials
protected void addSessionCredentials(SignableRequest<?> request, AWSSessionCredentials credentials)
Description copied from class:AbstractAWSSignerAdds session credentials to the request given.- Specified by:
addSessionCredentialsin classAbstractAWSSigner- Parameters:
request- The request to add session credentials information tocredentials- The session credentials to add to the request
-
-