Package io.jmix.autoconfigure.searchaws
Class AwsRequestSigningInterceptor
java.lang.Object
io.jmix.autoconfigure.searchaws.AwsRequestSigningInterceptor
- All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
public class AwsRequestSigningInterceptor
extends Object
implements org.apache.http.HttpRequestInterceptor
Intercepts HttpRequest and signs it with provided Signer.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAwsRequestSigningInterceptor
(String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
-
Field Details
-
service
-
signer
protected final com.amazonaws.auth.Signer signer
-
-
Constructor Details
-
AwsRequestSigningInterceptor
public AwsRequestSigningInterceptor(String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider) - Parameters:
service
- service to connect tosigner
- particular signer implementationawsCredentialsProvider
- source of AWS credentials for signing
-
-
Method Details
-
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
-