Class NeptuneRequestMetadataSigV4Signer

  • All Implemented Interfaces:
    NeptuneSigV4Signer<RequestMetadata>

    public class NeptuneRequestMetadataSigV4Signer
    extends NeptuneSigV4SignerBase<RequestMetadata>
    Signer for HTTP requests encapsulalted in RequestMetadatas.

    Note that there are certain limitations for the usage of this class. In particular:

    • The implementation adds a "Host" header. This may lead to problems if the original request has a host header with a name in different capitalization (e.g. "host"), leading to duplicate host headers and the signing process to fail. Hence, when using the API you need to make sure that there is either no host header in your original request or the host header uses the exact string "Host" as the header name.
    • When using GET, the underlying HTTP request needs to encode whitespaces in query parameters using '%20' rather than (what most APIs such as the Apache commons URIBuilder do) using '+'.