Class SignatureGenerator

java.lang.Object
com.cybersource.authsdk.http.SignatureGenerator

public class SignatureGenerator extends Object
Module to generate digital signature which is then passed to signature header parameter

The signature is created from the following values and then signed with Secret Key

host - Sandbox (apitest.cybersource.com) or Production (api.cybersource.com) hostname

date - HTTP-date with format as defined by RFC7231

request-target - Should be in format of httpMethod: path

                 Example : post /pts/v2/payments
 

Digest - Only needed for POST calls

v-c-merchant-id - Cybersource Merchant ID found on EBC portal