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

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final com.amazonaws.auth.Signer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    AwsRequestSigningInterceptor(String service, com.amazonaws.auth.Signer signer, com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider)
     
  • Method Summary

    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
  • Field Details

    • service

      protected final String 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 to
      signer - particular signer implementation
      awsCredentialsProvider - 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 interface org.apache.http.HttpRequestInterceptor
      Throws:
      org.apache.http.HttpException
      IOException