public class AWS4Signer extends AbstractAWSSigner implements ServiceAwareSigner, RegionAwareSigner, Presigner
EMPTY_STRING_SHA256_HEX| Constructor and Description | 
|---|
| AWS4Signer()Construct a new AWS4 signer instance. | 
| AWS4Signer(boolean doubleUrlEncoding)Construct a new AWS4 signer instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| Date | getOverriddenDate()Returns a copy of date that overrides the signing date in the request. | 
| String | getRegionName()Returns the region name that is used when calculating the signature. | 
| String | getServiceName()Returns the service name that is used when calculating the signature. | 
| void | presignRequest(SignableRequest<?> request,
              AWSCredentials credentials,
              Date userSpecifiedExpirationDate)Signs the request by adding the signature to the URL rather than as a
 header. | 
| 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(SignableRequest<?> request,
    AWSCredentials credentials)Sign the given request with the given set of credentials. | 
hash, hash, sign, signWithMacpublic AWS4Signer()
public AWS4Signer(boolean doubleUrlEncoding)
doubleUrlEncoding - Whether double url-encode the resource path when constructing
            the canonical request.public void setServiceName(String serviceName)
setServiceName in interface ServiceAwareSignerserviceName - The service name to use when calculating signatures in this
            signer.public void setRegionName(String regionName)
setRegionName in interface RegionAwareSignerregionName - The region name to use when calculating signatures in this
            signer.public String getRegionName()
public String getServiceName()
public Date getOverriddenDate()
public void sign(SignableRequest<?> request, AWSCredentials credentials)
Signerpublic void presignRequest(SignableRequest<?> request, AWSCredentials credentials, Date userSpecifiedExpirationDate)
PresignerpresignRequest in interface Presignerrequest - The request to sign.credentials - The credentials to sign it with.userSpecifiedExpirationDate - The time when this presigned URL will expire.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.