Class RESTSigV4Signer

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

    public class RESTSigV4Signer
    extends java.lang.Object
    implements org.apache.hc.core5.http.HttpRequestInterceptor
    Provides a request interceptor for use with the HTTPClient that calculates the required signature for the SigV4 protocol and adds the necessary headers for all requests created by the client.

    See Signing AWS API requests for details about the protocol.

    • Constructor Summary

      Constructors 
      Constructor Description
      RESTSigV4Signer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(java.util.Map<java.lang.String,​java.lang.String> properties)  
      void process​(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context)  
      • Methods inherited from class java.lang.Object

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

      • RESTSigV4Signer

        public RESTSigV4Signer()
    • Method Detail

      • initialize

        public void initialize​(java.util.Map<java.lang.String,​java.lang.String> properties)
      • process

        public void process​(org.apache.hc.core5.http.HttpRequest request,
                            org.apache.hc.core5.http.EntityDetails entity,
                            org.apache.hc.core5.http.protocol.HttpContext context)
        Specified by:
        process in interface org.apache.hc.core5.http.HttpRequestInterceptor