com.amazonaws.auth
Class AWS4Signer
java.lang.Object
com.amazonaws.auth.AbstractAWSSigner
com.amazonaws.auth.AWS4Signer
- All Implemented Interfaces:
- Signer
public class AWS4Signer
- extends AbstractAWSSigner
Signer implementation that signs requests with the AWS4 signing protocol.
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)
|
AWS4Signer
public AWS4Signer()
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.