public class S3Signer extends AbstractAWSSigner
EMPTY_STRING_SHA256_HEX
Constructor and Description |
---|
S3Signer()
Create a dummy instance of the S3Signer.
|
S3Signer(String httpVerb,
String resourcePath)
Constructs a new S3Signer to sign requests based on the AWS credentials,
HTTP method and canonical S3 resource path.
|
S3Signer(String httpVerb,
String resourcePath,
Collection<String> additionalQueryParamsToSign)
Constructs a new S3Signer to sign requests based on the AWS credentials,
HTTP method and canonical S3 resource path.
|
Modifier and Type | Method and Description |
---|---|
void |
sign(SignableRequest<?> request,
AWSCredentials credentials)
Sign the given request with the given set of credentials.
|
hash, hash, sign, signWithMac
public S3Signer()
public S3Signer(String httpVerb, String resourcePath)
httpVerb
- The HTTP verb (GET, PUT, POST, HEAD, DELETE) the request is
using.resourcePath
- The canonical S3 resource path (ex: "/", "/public S3Signer(String httpVerb, String resourcePath, Collection<String> additionalQueryParamsToSign)
httpVerb
- The HTTP verb (GET, PUT, POST, HEAD, DELETE) the request is
using.resourcePath
- The canonical S3 resource path (ex: "/", "/additionalQueryParamsToSign
- A collection of user-specified query parameters that should be
included in the canonical request, in addition to those
default parameters that are always signed.RestUtils#makeS3CanonicalString(String, String, Request, String)
public void sign(SignableRequest<?> request, AWSCredentials credentials)
Signer
request
- The request to sign.credentials
- The credentials to sign the request with.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.