| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.auth.AbstractAWSSigner
com.amazonaws.auth.AWS4Signer
public class AWS4Signer
Signer implementation that signs requests with the AWS4 signing protocol.
| Constructor Summary | |
|---|---|
| AWS4Signer()Construct a new AWS4 signer instance. | |
| AWS4Signer(boolean doubleUrlEncoding)Construct a new AWS4 signer instance. | |
| Method Summary | |
|---|---|
|  void | presignRequest(Request<?> request,
               AWSCredentials credentials,
               java.util.Date expiration)Signs the request by adding the signature to the URL rather than as a header. | 
|  void | setRegionName(java.lang.String regionName)Sets the region name that this signer should use when calculating request signatures. | 
|  void | setServiceName(java.lang.String serviceName)Sets the service name that this signer should use when calculating request signatures. | 
|  void | sign(Request<?> request,
     AWSCredentials credentials)Sign the given request with the given set of credentials. | 
| Methods inherited from class com.amazonaws.auth.AbstractAWSSigner | 
|---|
| hash, hash, sign | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AWS4Signer()
public AWS4Signer(boolean doubleUrlEncoding)
doubleUrlEncoding - Whether double url-encode the resource path when constructing
            the canonical request.| Method Detail | 
|---|
public void sign(Request<?> request,
                 AWSCredentials credentials)
Signer
sign in interface Signerrequest - The request to sign.credentials - The credentials to sign the request with.public void setServiceName(java.lang.String serviceName)
setServiceName in interface ServiceAwareSignerserviceName - The service name to use when calculating signatures in this
            signer.public void setRegionName(java.lang.String regionName)
setRegionName in interface RegionAwareSignerregionName - The region name to use when calculating signatures in this
            signer.
public void presignRequest(Request<?> request,
                           AWSCredentials credentials,
                           java.util.Date expiration)
Presigner
presignRequest in interface Presignerrequest - The request to sign.credentials - The credentials to sign it with.expiration - The time when this presigned URL will expire.| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||