public class RequestSigner extends Object
| Constructor and Description |
|---|
RequestSigner(PayConfiguration payConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
signRequest(URI uri,
String httpMethodName,
Map<String,List<String>> queryParameters,
String requestPayload,
Map<String,String> header)
Signs the request provided and returns the signed headers map
|
public RequestSigner(PayConfiguration payConfiguration) throws AmazonPayClientException
AmazonPayClientExceptionpublic Map<String,String> signRequest(URI uri, String httpMethodName, Map<String,List<String>> queryParameters, String requestPayload, Map<String,String> header) throws AmazonPayClientException
uri - The uri that needs to be executedhttpMethodName - the HTTP request method(GET,PUT,POST etc) to be usedqueryParameters - the query parameters maprequestPayload - the payload to be sent with the requestheader - Map<String, String> containining key-value pair of required headers (e.g., keys such as x-amz-pay-idempotency-key, x-amz-pay-authtoken)AmazonPayClientException - When an error response is returned by Amazon Pay due to bad request or other issueCopyright © 2025. All rights reserved.