/aws-request-signing-apache-interceptor

Provides AWS Signing implementation of Apache Interface.

Primary LanguageJavaApache License 2.0Apache-2.0

AWS Request Signing Interceptor

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.

License

This library is licensed under the Apache 2.0 License.

Usage

AWS4Signer signer = new AWS4Signer();
    signer.setServiceName(serviceName);
    signer.setRegionName(AWS_REGION);

HttpRequestInterceptor interceptor = new AWSRequestSigningApacheInterceptor(serviceName, signer, credentialsProvider);

HttpClients.custom()
    .addInterceptorLast(interceptor)
    .build();

Examples

See examples directory for a few valid requests.