Class AWSRequestSigningApacheInterceptor
- java.lang.Object
-
- com.amazonaws.athena.connectors.elasticsearch.AWSRequestSigningApacheInterceptor
-
- All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
public class AWSRequestSigningApacheInterceptor extends Object implements org.apache.http.HttpRequestInterceptor
AnHttpRequestInterceptor
that signs requests using any AWSAwsV4HttpSigner
andAwsCredentialsProvider
.
-
-
Constructor Summary
Constructors Constructor Description AWSRequestSigningApacheInterceptor(String service, software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner signer, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, String region)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
-
-
-
Constructor Detail
-
AWSRequestSigningApacheInterceptor
public AWSRequestSigningApacheInterceptor(String service, software.amazon.awssdk.http.auth.aws.signer.AwsV4HttpSigner signer, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider awsCredentialsProvider, String region)
- Parameters:
service
- service that we're connecting tosigner
- particular signer implementationawsCredentialsProvider
- source of AWS credentials for signing
-
-
Method Detail
-
process
public void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException
- Specified by:
process
in interfaceorg.apache.http.HttpRequestInterceptor
- Throws:
org.apache.http.HttpException
IOException
-
-