Package org.jclouds.s3.filters
Class Aws4SignerForQueryString
- java.lang.Object
-
- org.jclouds.s3.filters.Aws4SignerBase
-
- org.jclouds.s3.filters.Aws4SignerForQueryString
-
public class Aws4SignerForQueryString extends Aws4SignerBase
AWS4 signer sign requests to Amazon S3 using query string parameters.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.s3.filters.Aws4SignerBase
Aws4SignerBase.ServiceAndRegion
-
-
Field Summary
-
Fields inherited from class org.jclouds.s3.filters.Aws4SignerBase
creds, crypto, dateFormat, headerTag, serviceAndRegion, signatureWire, timestampFormat, timestampProvider
-
-
Constructor Summary
Constructors Constructor Description Aws4SignerForQueryString(SignatureWire signatureWire, boolean isVhostStyle, String headerTag, com.google.common.base.Supplier<Credentials> creds, com.google.common.base.Supplier<Date> timestampProvider, Aws4SignerBase.ServiceAndRegion serviceAndRegion, Crypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getPayloadHash()
protected HttpRequest
sign(HttpRequest request, long timeInSeconds)
-
Methods inherited from class org.jclouds.s3.filters.Aws4SignerBase
appendAmzHeaders, createStringToSign, getCanonicalizedQueryString, getContentLength, getContentType, hash, hash, hash, hex, hmacSHA256, hmacSHA256, hostHeaderFor, lowerCaseNaturalOrderKeys, signatureKey, urlEncode
-
-
-
-
Constructor Detail
-
Aws4SignerForQueryString
@Inject public Aws4SignerForQueryString(SignatureWire signatureWire, @Named("jclouds.s3.virtual-host-buckets") boolean isVhostStyle, @Named("jclouds.aws.header.tag") String headerTag, com.google.common.base.Supplier<Credentials> creds, com.google.common.base.Supplier<Date> timestampProvider, Aws4SignerBase.ServiceAndRegion serviceAndRegion, Crypto crypto)
-
-
Method Detail
-
sign
protected HttpRequest sign(HttpRequest request, long timeInSeconds) throws HttpException
- Throws:
HttpException
-
getPayloadHash
protected String getPayloadHash()
-
-