An AWS request signing interceptor for arbitrary HttpRequests.
This enables you to sign requests to any service that leverages SigV4 this means you have a client that can access any AWS Service or APIGW backed service.
This library is licensed under the Apache 2.0 License.
AWS4Signer signer = new AWS4Signer();
signer.setServiceName(serviceName);
signer.setRegionName(AWS_REGION);
HttpRequestInterceptor interceptor = new AWSRequestSigningApacheInterceptor(serviceName, signer, credentialsProvider);
HttpClients.custom()
.addInterceptorLast(interceptor)
.build();
See examples directory for a few valid requests.