Package org.apache.iceberg.aws
Class RESTSigV4Signer
- java.lang.Object
-
- org.apache.iceberg.aws.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)
-
-
-
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 interfaceorg.apache.hc.core5.http.HttpRequestInterceptor
-
-