|
|||||||
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.QueryStringSigner
public class QueryStringSigner
Signer implementation responsible for signing an AWS query string request according to the various signature versions and hashing algorithms.
Constructor Summary | |
---|---|
QueryStringSigner(AWSCredentials credentials)
Constructs a new QueryStringSigner to sign requests based on the specified service endpoint (ex: "s3.amazonaws.com") and AWS secret access key. |
Method Summary | |
---|---|
void |
sign(Request<?> request)
This signer will add "Signature" parameter to the request. |
void |
sign(Request<?> request,
SignatureVersion version,
SigningAlgorithm algorithm)
This signer will add following authentication parameters to the request: AWSAccessKeyId SignatureVersion SignatureMethod Timestamp Signature |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryStringSigner(AWSCredentials credentials)
credentials
- AWS CredentialsMethod Detail |
---|
public void sign(Request<?> request) throws SignatureException
request
- request to be signed.
SignatureException
public void sign(Request<?> request, SignatureVersion version, SigningAlgorithm algorithm) throws SignatureException
sign
in interface Signer
request
- request to be signed.version
- signature version. "2" is recommended.algorithm
- signature algorithm. "HmacSHA256" is recommended.
SignatureException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |