Example usage for com.amazonaws.auth.internal AWS4SignerRequestParams getFormattedSigningDateTime

List of usage examples for com.amazonaws.auth.internal AWS4SignerRequestParams getFormattedSigningDateTime

Introduction

In this page you can find the example usage for com.amazonaws.auth.internal AWS4SignerRequestParams getFormattedSigningDateTime.

Prototype

public String getFormattedSigningDateTime() 

Source Link

Document

Returns the formatted date and time of the signing date in UTC zone.

Usage

From source file:com.ibm.og.s3.v4.AWSS3V4Signer.java

License:Open Source License

/**
 * If necessary, creates a chunk-encoding wrapper on the request payload.
 *///www  .jav  a  2  s. c om
@Override
protected void processRequestPayload(final SignableRequest<?> request, final byte[] signature,
        final byte[] signingKey, final AWS4SignerRequestParams signerRequestParams) {
    if (useChunkEncoding(request)) {
        final AwsChunkedEncodingInputStream chunkEncodededStream = new AwsChunkedEncodingInputStream(
                request.getContent(), signingKey, signerRequestParams.getFormattedSigningDateTime(),
                signerRequestParams.getScope(), BinaryUtils.toHex(signature), this, this.digestCache);
        request.setContent(chunkEncodededStream);
    }
}