Package com.amazonaws.http
Class AWSRequestSigningApacheInterceptor
java.lang.Object
com.amazonaws.http.AWSRequestSigningApacheInterceptor
- All Implemented Interfaces:
org.apache.http.HttpRequestInterceptor
public class AWSRequestSigningApacheInterceptor
extends Object
implements org.apache.http.HttpRequestInterceptor
An
HttpRequestInterceptor that signs requests using any AWS Signer
and AWSCredentialsProvider.-
Constructor Summary
ConstructorsConstructorDescriptionAWSRequestSigningApacheInterceptor(String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context)
-
Constructor Details
-
AWSRequestSigningApacheInterceptor
public AWSRequestSigningApacheInterceptor(String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider) - Parameters:
service- service that we're connecting 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:
processin interfaceorg.apache.http.HttpRequestInterceptor- Throws:
org.apache.http.HttpExceptionIOException
-