public class S3QueryStringSigner extends AbstractAWSSigner
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
expiration |
private java.lang.String |
httpVerb
The HTTP verb (GET, PUT, HEAD, DELETE) the request to sign
is using.
|
private java.lang.String |
resourcePath
The canonical resource path portion of the S3 string to sign.
|
EMPTY_STRING_SHA256_HEX
Constructor and Description |
---|
S3QueryStringSigner(java.lang.String httpVerb,
java.lang.String resourcePath,
java.util.Date expiration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials)
Adds session credentials to the request given.
|
void |
sign(SignableRequest<?> request,
AWSCredentials credentials)
Sign the given request with the given set of credentials.
|
getBinaryRequestPayload, getBinaryRequestPayloadStream, getBinaryRequestPayloadStreamWithoutQueryParams, getBinaryRequestPayloadWithoutQueryParams, getCanonicalizedEndpoint, getCanonicalizedQueryString, getCanonicalizedQueryString, getCanonicalizedResourcePath, getCanonicalizedResourcePath, getRequestPayload, getRequestPayloadWithoutQueryParams, getSignatureDate, getTimeOffset, hash, hash, hash, newString, sanitizeCredentials, sign, sign, signAndBase64Encode, signAndBase64Encode, signWithMac
private final java.lang.String httpVerb
private final java.lang.String resourcePath
private final java.util.Date expiration
public S3QueryStringSigner(java.lang.String httpVerb, java.lang.String resourcePath, java.util.Date expiration)
public void sign(SignableRequest<?> request, AWSCredentials credentials) throws AmazonClientException
Signer
request
- The request to sign.credentials
- The credentials to sign the request with.AmazonClientException
protected void addSessionCredentials(SignableRequest<?> request, AWSSessionCredentials credentials)
AbstractAWSSigner
addSessionCredentials
in class AbstractAWSSigner
request
- The request to add session credentials information tocredentials
- The session credentials to add to the request