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 requestAmazonPayClientExceptionCopyright © 2020. All rights reserved.