Adds some features in order to support the SDK making S3 Express requests
Issue \
Description of changes
Refactor checksums to use an execution context key HttpOperationContext.ChecksumAlgorithm. The value is the name of the checksum algorithm to be used. If it's set when flexible checksums runs, it will be used, otherwise the Content-MD5 header will be computed and added as before. This greatly simplifies the logic required in these interceptors.
Allow setting omitSessionToken signing configuration via execution context, using the AwsSigningAttributes. OmitSessionToken key.
Add a generic, thread-safe LruCache which holds entries up to a configurable capacity and then evicts the least-recently used entries as more are added.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Adds some features in order to support the SDK making S3 Express requests
Issue \
Description of changes
HttpOperationContext.ChecksumAlgorithm
. The value is the name of the checksum algorithm to be used. If it's set when flexible checksums runs, it will be used, otherwise theContent-MD5
header will be computed and added as before. This greatly simplifies the logic required in these interceptors.omitSessionToken
signing configuration via execution context, using theAwsSigningAttributes. OmitSessionToken
key.LruCache
which holds entries up to a configurablecapacity
and then evicts the least-recently used entries as more are added.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.