public abstract class AbstractAwsSigner extends Object implements Signer
Not intended to be sub-classed by developers.
| Constructor and Description |
|---|
AbstractAwsSigner() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
addSessionCredentials(SdkHttpFullRequest.Builder mutableRequest,
AwsSessionCredentials credentials)
Adds session credentials to the request given.
|
protected InputStream |
getBinaryRequestPayloadStream(ContentStreamProvider streamProvider) |
protected AwsCredentials |
sanitizeCredentials(AwsCredentials credentials)
Loads the individual access key ID and secret key from the specified credentials, trimming any extra whitespace from the
credentials.
|
protected byte[] |
sign(byte[] data,
byte[] key,
SigningAlgorithm algorithm) |
protected byte[] |
sign(String stringData,
byte[] key,
SigningAlgorithm algorithm) |
protected String |
signAndBase64Encode(String data,
String key,
SigningAlgorithm algorithm)
Computes an RFC 2104-compliant HMAC signature and returns the result as a
Base64 encoded string.
|
protected byte[] |
signWithMac(String stringData,
Mac mac) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcredentialType, signprotected String signAndBase64Encode(String data, String key, SigningAlgorithm algorithm) throws SdkClientException
SdkClientExceptionprotected byte[] sign(String stringData, byte[] key, SigningAlgorithm algorithm) throws SdkClientException
SdkClientExceptionprotected byte[] sign(byte[] data,
byte[] key,
SigningAlgorithm algorithm)
throws SdkClientException
SdkClientExceptionprotected InputStream getBinaryRequestPayloadStream(ContentStreamProvider streamProvider)
protected AwsCredentials sanitizeCredentials(AwsCredentials credentials)
Returns either a AwsSessionCredentials or a AwsBasicCredentials object, depending on the input type.
protected abstract void addSessionCredentials(SdkHttpFullRequest.Builder mutableRequest, AwsSessionCredentials credentials)
mutableRequest - The request to add session credentials information tocredentials - The session credentials to add to the requestCopyright © 2023. All rights reserved.