Commit af66736
committed
Optimize SigV4 and add S3 content-sha256 handling
Switch signing to in-place strided buffers in SigningResources, removing
the per-call TreeMap/ArrayList/Pair allocations and one UTF-8 encoder
pass. Add x-amz-content-sha256 to the canonical request and wire request
for s3/s3express; honor pre-set X-Amz-Date, security-token, and content-
sha256 headers; throw on unknown-length payloads instead of signing as
empty; treat port -1 as default in the Host header; fast-path the
already-canonical query string. Test runner ignores Content-Length when
comparing requests (signature-irrelevant; auto-derived locally).1 parent da1b727 commit af66736
3 files changed
Lines changed: 417 additions & 133 deletions
File tree
- aws/aws-sigv4/src
- main/java/software/amazon/smithy/java/aws/client/auth/scheme/sigv4
- test/java/software/amazon/smithy/java/aws/client/auth/scheme/sigv4
0 commit comments