com.amazonaws.auth
Class AWS3Signer

java.lang.Object
  extended by com.amazonaws.auth.AbstractAWSSigner
      extended by 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
protected static DateUtils dateUtils
          Deprecated. 
 
Constructor Summary
AWS3Signer()
           
 
Method Summary
protected  void addSessionCredentials(Request<?> request, AWSSessionCredentials credentials)
          Adds session credentials to the request given.
protected  String getCanonicalizedHeadersForStringToSign(Request<?> request)
           
protected  List<String> getHeadersForStringToSign(Request<?> request)
           
protected  boolean shouldUseHttpsScheme(Request<?> request)
           
 void sign(Request<?> 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dateUtils

@Deprecated
protected static final DateUtils dateUtils
Deprecated. 
Constructor Detail

AWS3Signer

public AWS3Signer()
Method Detail

sign

public void sign(Request<?> 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(Request<?> request)

getCanonicalizedHeadersForStringToSign

protected String getCanonicalizedHeadersForStringToSign(Request<?> request)

shouldUseHttpsScheme

protected boolean shouldUseHttpsScheme(Request<?> request)
                                throws AmazonClientException
Throws:
AmazonClientException

addSessionCredentials

protected void addSessionCredentials(Request<?> request,
                                     AWSSessionCredentials credentials)
Description copied from class: AbstractAWSSigner
Adds session credentials to the request given.

Specified by:
addSessionCredentials in class AbstractAWSSigner
Parameters:
request - The request to add session credentials information to
credentials - The session credentials to add to the request


Copyright © 2016. All rights reserved.