https://github.com/amzn/aws-sigv4-signing-samples
This package contains sample code demonstrating SigV4 signing using AWS Java SDK.
https://github.com/amzn/aws-sigv4-signing-samples
aws java sample sigv4
Last synced: 6 months ago
JSON representation
This package contains sample code demonstrating SigV4 signing using AWS Java SDK.
- Host: GitHub
- URL: https://github.com/amzn/aws-sigv4-signing-samples
- Owner: amzn
- License: mit-0
- Created: 2022-06-02T18:20:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T19:02:11.000Z (about 4 years ago)
- Last Synced: 2025-03-30T16:51:12.652Z (over 1 year ago)
- Topics: aws, java, sample, sigv4
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Aws SigV4 Signing Samples
This package contains sample code demonstrating
[SigV4](https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html) signing using
[AWS Java SDK](https://aws.amazon.com/sdk-for-java/). It contains two main classes in Java package `aws.sigv4.samples`,
namely `CredentialProviderBasedAwsSigV4Signer` and `IamRoleBasedAwsSigV4Signer`.
These classes show different types of signer implementations.
These classed use AWS SDK's `AWS4Signer` class for signing,
and show how a SigV4 signature can be generated and how the signed headers can be extracted.
These signed headers can then be used with any HTTP request lib
(like [URL connection](https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html)),
for sending an SigV4 signed HTTP request.
This package also contains some test cases demonstrating the usage of sample signer classes,
but it doesn't contain any build logic. This package is not meant for direct consumption.
The sample code in this package should only be referred to write you own code.
## Security
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
## License
This library is licensed under the MIT-0 License. See the LICENSE file.