java.lang.Object | |
↳ | com.modus.mule.modules.as2.filestorage.s3.AWS4SignerBase |
Known Direct Subclasses |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ALGORITHM | ||||||||||
String | DateStringFormat | ||||||||||
String | EMPTY_BODY_SHA256 | SHA256 hash of an empty request body | |||||||||
String | ISO8601BasicFormat | format strings for the date/time and date stamps required during signing | |||||||||
String | SCHEME | ||||||||||
String | TERMINATOR | ||||||||||
String | UNSIGNED_PAYLOAD |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
dateStampFormat | |||||||||||
dateTimeFormat | |||||||||||
endpointUrl | |||||||||||
httpMethod | |||||||||||
regionName | |||||||||||
serviceName |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new AWS V4 signer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Examines the specified query string parameters and returns a canonicalized form.
| |||||||||||
Hashes the byte array using the SHA-256 algorithm.
| |||||||||||
Hashes the string contents (assumed to be UTF-8) using the SHA-256 algorithm.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the canonical request string to go into the signer process; this consists of several canonical sub-parts.
| |||||||||||
Returns the canonical collection of header names that will be included in the signature.
| |||||||||||
Computes the canonical headers with values for the request.
| |||||||||||
Returns the canonicalized resource path for the service endpoint.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
SHA256 hash of an empty request body
format strings for the date/time and date stamps required during signing
Create a new AWS V4 signer.
endpointUrl | The service endpoint, including the path to any resource. |
---|---|
httpMethod | The HTTP verb for the request, e.g. GET. |
serviceName | The signing name of the service, e.g. 's3'. |
regionName | The system name of the AWS region associated with the endpoint, e.g. us-east-1. |
Examines the specified query string parameters and returns a canonicalized form.
The canonicalized query string is formed by first sorting all the query string parameters, then URI encoding both the key and value and then joining them, in order, separating key value pairs with an '&'.
parameters | The query string parameters to be canonicalized. |
---|
Hashes the byte array using the SHA-256 algorithm.
data |
---|
Hashes the string contents (assumed to be UTF-8) using the SHA-256 algorithm.
text |
---|
data |
---|
Returns the canonical request string to go into the signer process; this consists of several canonical sub-parts.
endpoint | |
---|---|
httpMethod | |
queryParameters | |
canonicalizedHeaderNames | |
canonicalizedHeaders | |
bodyHash |
Returns the canonical collection of header names that will be included in the signature. For AWS4, all header names must be included in the process in sorted canonicalized order.
headers |
---|
Computes the canonical headers with values for the request. For AWS4, all headers must be included in the signing process.
headers |
---|
Returns the canonicalized resource path for the service endpoint.
endpoint |
---|
scheme | |
---|---|
algorithm | |
dateTime | |
scope | |
canonicalRequest |
stringData | |
---|---|
key | |
algorithm |
url | |
---|---|
keepPathSlash |