com.amazonaws.auth
Class AWS4Signer

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

public class AWS4Signer
extends AbstractAWSSigner

Signer implementation that signs requests with the AWS4 signing protocol.


Constructor Summary
AWS4Signer()
           
 
Method Summary
 void setRegionName(String regionName)
          Sets the region name that this signer should use when calculating request signatures.
 void setServiceName(String serviceName)
          Sets the service name that this signer should use when calculating request signatures.
 void sign(Request<?> request, AWSCredentials credentials)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWS4Signer

public AWS4Signer()
Method Detail

sign

public void sign(Request<?> request,
                 AWSCredentials credentials)
          throws AmazonClientException
Throws:
AmazonClientException

setServiceName

public void setServiceName(String serviceName)
Sets the service name that this signer should use when calculating request signatures. This can almost always be determined directly from the request's end point, so you shouldn't need this method, but it's provided for the edge case where the information is not in the endpoint.

Parameters:
serviceName - The service name to use when calculating signatures in this signer.

setRegionName

public void setRegionName(String regionName)
Sets the region name that this signer should use when calculating request signatures. This can almost always be determined directly from the request's end point, so you shouldn't need this method, but it's provided for the edge case where the information is not in the endpoint.

Parameters:
regionName - The region name to use when calculating signatures in this signer.


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.