Interface RequestSigner

  • All Known Implementing Classes:
    RequestSignerImpl

    public interface RequestSigner
    Main entry point for signing a request
    • Method Detail

      • signRequest

        @Nonnull
        Map<String,​String> signRequest​(@Nonnull
                                             URI uri,
                                             @Nonnull
                                             String httpMethod,
                                             @Nonnull
                                             Map<String,​List<String>> headers,
                                             @Nullable
                                             Object body)
        Sign a request.
        Parameters:
        uri - the request uri
        httpMethod - the request method
        headers - the request headers
        body - the request body (if this is a PUT or POST method)
        Returns:
        a map that contains the signature Authorization header, and any headers that were signed when generating the signature. You MUST include the exact values of the returned headers when making requests.