Class AWSRequestSigningApacheInterceptor

  • All Implemented Interfaces:
    org.apache.http.HttpRequestInterceptor

    public class AWSRequestSigningApacheInterceptor
    extends java.lang.Object
    implements org.apache.http.HttpRequestInterceptor
    An HttpRequestInterceptor that signs requests using any AWS Signer and AWSCredentialsProvider.
    • Constructor Summary

      Constructors 
      Constructor Description
      AWSRequestSigningApacheInterceptor​(java.lang.String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)  
    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AWSRequestSigningApacheInterceptor

        public AWSRequestSigningApacheInterceptor​(java.lang.String service,
                                                  com.amazonaws.auth.Signer signer,
                                                  com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)
        Parameters:
        service - service that we're connecting to
        signer - particular signer implementation
        awsCredentialsProvider - 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,
                            java.io.IOException
        Specified by:
        process in interface org.apache.http.HttpRequestInterceptor
        Throws:
        org.apache.http.HttpException
        java.io.IOException