public class Aws4SignerForAuthorizationHeader extends Aws4SignerBase
Aws4SignerBase.ServiceAndRegion
creds, crypto, dateFormat, headerTag, serviceAndRegion, signatureWire, timestampFormat, timestampProvider
Constructor and Description |
---|
Aws4SignerForAuthorizationHeader(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) |
Modifier and Type | Method and Description |
---|---|
protected String |
calculatePayloadContentHash(Payload payload)
in this time, payload ContentMetadata provided content hash md5, but aws required sha256.
|
protected String |
getEmptyPayloadContentHash()
The hash returns the following value: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
|
protected String |
getPayloadHash(HttpRequest request) |
protected HttpRequest |
sign(HttpRequest request) |
appendAmzHeaders, createStringToSign, getCanonicalizedQueryString, getContentLength, getContentType, hash, hash, hash, hex, hmacSHA256, hmacSHA256, lowerCaseNaturalOrderKeys, signatureKey, urlEncode
@Inject public Aws4SignerForAuthorizationHeader(SignatureWire signatureWire, @Named(value="jclouds.s3.virtual-host-buckets") boolean isVhostStyle, @Named(value="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)
protected HttpRequest sign(HttpRequest request) throws HttpException
HttpException
protected String getPayloadHash(HttpRequest request)
protected String getEmptyPayloadContentHash()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.