public class AWSRequestSigningApacheInterceptor
extends java.lang.Object
implements org.apache.http.HttpRequestInterceptor
HttpRequestInterceptor
that signs requests using any AWS
Signer
and AWSCredentialsProvider
.Constructor and Description |
---|
AWSRequestSigningApacheInterceptor(java.lang.String service,
com.amazonaws.auth.Signer signer,
com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider) |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
public AWSRequestSigningApacheInterceptor(java.lang.String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)
service
- service that we're connecting tosigner
- particular signer implementationawsCredentialsProvider
- source of AWS credentials for signingpublic void process(org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, java.io.IOException
process
in interface org.apache.http.HttpRequestInterceptor
org.apache.http.HttpException
java.io.IOException