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

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

Introduction

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

Prototype

public String getScope() 

Source Link

Document

Returns the scope of the signing.

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.
 *//*w  w w .j  a v  a2  s  . c  o m*/
@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);
    }
}