Modifier and Type | Interface and Description |
---|---|
interface |
Request<T>
Represents a request being sent to an Amazon Web Service, including the
parameters being sent as part of the request, the endpoint to which the
request should be sent, etc.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultRequest<T>
Default implementation of the Request interface.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AWS4Signer.addHostHeader(SignableRequest<?> request) |
protected void |
AWS4Signer.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
protected void |
AWS3Signer.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
protected abstract void |
AbstractAWSSigner.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials)
Adds session credentials to the request given.
|
protected void |
QueryStringSigner.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
protected String |
AWS4Signer.calculateContentHash(SignableRequest<?> request)
Calculate the hash of the request's payload.
|
protected String |
AWS4UnsignedPayloadSigner.calculateContentHash(SignableRequest<?> request) |
protected String |
AWS4Signer.calculateContentHashPresign(SignableRequest<?> request)
Calculate the hash of the request's payload.
|
protected String |
AWS4Signer.createCanonicalRequest(SignableRequest<?> request,
String contentSha256)
Step 1 of the AWS Signature version 4 calculation.
|
protected byte[] |
AbstractAWSSigner.getBinaryRequestPayload(SignableRequest<?> request)
Returns the request's payload as binary data.
|
protected InputStream |
AbstractAWSSigner.getBinaryRequestPayloadStream(SignableRequest<?> request) |
protected InputStream |
AbstractAWSSigner.getBinaryRequestPayloadStreamWithoutQueryParams(SignableRequest<?> request) |
protected byte[] |
AbstractAWSSigner.getBinaryRequestPayloadWithoutQueryParams(SignableRequest<?> request)
Returns the request's payload contents as binary data, without processing
any query string params (i.e.
|
protected String |
AWS3Signer.getCanonicalizedHeadersForStringToSign(SignableRequest<?> request) |
protected String |
AWS4Signer.getCanonicalizedHeaderString(SignableRequest<?> request) |
protected String |
AbstractAWSSigner.getCanonicalizedQueryString(SignableRequest<?> request) |
protected List<String> |
AWS3Signer.getHeadersForStringToSign(SignableRequest<?> request) |
protected String |
AbstractAWSSigner.getRequestPayload(SignableRequest<?> request)
Returns the request's payload as a String.
|
protected String |
AbstractAWSSigner.getRequestPayloadWithoutQueryParams(SignableRequest<?> request)
Returns the request's payload contents as a String, without processing
any query string params (i.e.
|
protected String |
AWS4Signer.getSignedHeadersString(SignableRequest<?> request) |
protected int |
AbstractAWSSigner.getTimeOffset(SignableRequest<?> request)
Deprecated.
|
void |
Presigner.presignRequest(SignableRequest<?> request,
AWSCredentials credentials,
Date expiration)
Signs the request by adding the signature to the URL rather than as a
header.
|
void |
AWS4Signer.presignRequest(SignableRequest<?> request,
AWSCredentials credentials,
Date userSpecifiedExpirationDate) |
protected void |
AWS4Signer.processRequestPayload(SignableRequest<?> request,
byte[] signature,
byte[] signingKey,
AWS4SignerRequestParams signerRequestParams)
Subclass could override this method to perform any additional procedure
on the request payload, with access to the result from signing the
header.
|
protected boolean |
AWS3Signer.shouldUseHttpsScheme(SignableRequest<?> request) |
void |
SignerAsRequestSigner.sign(SignableRequest<?> request) |
void |
RequestSigner.sign(SignableRequest<?> request)
Sign the given request - modifies the
passed-in request to apply the signature.
|
void |
NoOpSigner.sign(SignableRequest<?> request,
AWSCredentials credentials) |
void |
AWS4Signer.sign(SignableRequest<?> request,
AWSCredentials credentials) |
void |
Signer.sign(SignableRequest<?> request,
AWSCredentials credentials)
Sign the given request with the given set of credentials.
|
void |
AWS3Signer.sign(SignableRequest<?> request,
AWSCredentials credentials)
Signs the specified request with the AWS3 signing protocol by using the
AWS account credentials specified when this object was constructed and
adding the required AWS3 headers to the request.
|
void |
AWS4UnsignedPayloadSigner.sign(SignableRequest<?> request,
AWSCredentials credentials) |
void |
QueryStringSigner.sign(SignableRequest<?> request,
AWSCredentials credentials)
This signer will add "Signature" parameter to the request.
|
void |
QueryStringSigner.sign(SignableRequest<?> request,
SignatureVersion version,
SigningAlgorithm algorithm,
AWSCredentials credentials)
This signer will add following authentication parameters to the request:
AWSAccessKeyId SignatureVersion SignatureMethod Timestamp Signature
|
Modifier and Type | Method and Description |
---|---|
SignableRequest<?> |
AWS4SignerRequestParams.getRequest()
Returns the request for which the signing needs to be done.
|
Constructor and Description |
---|
AWS4SignerRequestParams(SignableRequest<?> request,
Date signingDateOverride,
String regionNameOverride,
String serviceName,
String signingAlgorithm)
Generates an instance of AWS4signerRequestParams that holds the
parameters used for computing a AWS 4 signature for a request
|
Modifier and Type | Method and Description |
---|---|
protected void |
IBMOAuthSigner.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
void |
IBMOAuthSigner.sign(SignableRequest<?> request,
AWSCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
protected void |
S3Signer.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
protected void |
S3QueryStringSigner.addSessionCredentials(SignableRequest<?> request,
AWSSessionCredentials credentials) |
protected String |
AWSS3V4Signer.calculateContentHash(SignableRequest<?> request)
Returns the pre-defined header value and set other necessary headers if
the request needs to be chunk-encoded.
|
protected String |
AWSS3V4Signer.calculateContentHashPresign(SignableRequest<?> request) |
static <T> String |
RestUtils.makeS3CanonicalString(String method,
String resource,
SignableRequest<T> request,
String expires)
Calculate the canonical string for a REST/HTTP request to S3 by only
including query parameters that are mentioned in SIGNED_PARAMETERS.
|
static <T> String |
RestUtils.makeS3CanonicalString(String method,
String resource,
SignableRequest<T> request,
String expires,
Collection<String> additionalQueryParamsToSign)
Calculate the canonical string for a REST/HTTP request to S3.
|
protected void |
AWSS3V4Signer.processRequestPayload(SignableRequest<?> request,
byte[] signature,
byte[] signingKey,
AWS4SignerRequestParams signerRequestParams)
If necessary, creates a chunk-encoding wrapper on the request payload.
|
void |
S3Signer.sign(SignableRequest<?> request,
AWSCredentials credentials) |
void |
S3QueryStringSigner.sign(SignableRequest<?> request,
AWSCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
static String |
SdkHttpUtils.encodeParameters(SignableRequest<?> request)
Creates an encoded query string from all the parameters in the specified
request.
|
static boolean |
SdkHttpUtils.usePayloadForQueryParameters(SignableRequest<?> request) |
Copyright © 2024. All rights reserved.