public class Aws4SignerForChunkedUpload extends Aws4SignerBase
Aws4SignerBase.ServiceAndRegioncreds, crypto, dateFormat, headerTag, serviceAndRegion, signatureWire, timestampFormat, timestampProvider| Constructor and Description |
|---|
Aws4SignerForChunkedUpload(org.jclouds.http.internal.SignatureWire signatureWire,
String headerTag,
int userDataBlockSize,
com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
com.google.common.base.Supplier<Date> timestampProvider,
Aws4SignerBase.ServiceAndRegion serviceAndRegion,
org.jclouds.crypto.Crypto crypto) |
| Modifier and Type | Method and Description |
|---|---|
static long |
calculateChunkedContentLength(long originalLength,
long chunkSize)
Calculates the expanded payload size of our data when it is chunked
|
protected String |
getPayloadHash() |
protected org.jclouds.http.HttpRequest |
sign(org.jclouds.http.HttpRequest request) |
appendAmzHeaders, createStringToSign, getCanonicalizedQueryString, getContentLength, getContentType, hash, hash, hash, hex, hmacSHA256, hmacSHA256, hostHeaderFor, lowerCaseNaturalOrderKeys, signatureKey, urlEncode@Inject
public Aws4SignerForChunkedUpload(org.jclouds.http.internal.SignatureWire signatureWire,
@Named(value="jclouds.aws.header.tag")
String headerTag,
@Named(value="jclouds.s3.chunked.size")
int userDataBlockSize,
com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
com.google.common.base.Supplier<Date> timestampProvider,
Aws4SignerBase.ServiceAndRegion serviceAndRegion,
org.jclouds.crypto.Crypto crypto)
protected org.jclouds.http.HttpRequest sign(org.jclouds.http.HttpRequest request)
throws org.jclouds.http.HttpException
org.jclouds.http.HttpExceptionprotected String getPayloadHash()
public static long calculateChunkedContentLength(long originalLength,
long chunkSize)
originalLength - The true size of the data payload to be uploadedchunkSize - The size of each chunk we intend to send; each chunk will be
prefixed with signed header data, expanding the overall size
by a determinable amountCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.