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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(Map<String, 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)
-
Constructor Details
-
RESTSigV4Signer
public RESTSigV4Signer()
-
-
Method Details
-
initialize
-
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
-