com.amazonaws.auth
Class CloudFrontSigner

java.lang.Object
  extended by com.amazonaws.auth.AbstractAWSSigner
      extended by com.amazonaws.auth.CloudFrontSigner
All Implemented Interfaces:
Signer

public class CloudFrontSigner
extends AbstractAWSSigner

Implementation of AbstractAWSSigner for Amazon CloudFront's authentication scheme.


Constructor Summary
CloudFrontSigner()
           
 
Method Summary
protected  void addSessionCredentials(Request<?> request, AWSSessionCredentials credentials)
          Adds session credentials to the request given.
 void sign(Request<?> request, AWSCredentials credentials)
          Sign the given request with the given set of credentials.
 
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
 

Constructor Detail

CloudFrontSigner

public CloudFrontSigner()
Method Detail

sign

public void sign(Request<?> request,
                 AWSCredentials credentials)
          throws AmazonClientException
Description copied from interface: Signer
Sign the given request with the given set of credentials. Modifies the passed-in request to apply the signature.

Parameters:
request - The request to sign.
credentials - The credentials to sign the request with.
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.