Package com.cybersource.authsdk.http
Class HttpSignatureToken
java.lang.Object
com.cybersource.authsdk.http.HttpSignatureToken
- All Implemented Interfaces:
TokenGenerator
HttpSigToken returns SignatureHeader value that contains following parameters
keyid - Merchant ID obtained from EBC portal
algorithm - Should have value as "HmacSHA256"
headers - List of all header keys passed in the signature parameter
Note: Digest is not passed for GET calls
signature - Signature header has parameter called signature
Parameter 'signature' must contain all the parameters mentioned in header above in given order
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HttpSignatureToken
- Parameters:
merchantConfig- - merchant configuration information
-
-
Method Details
-
getToken
Method to get Token.- Specified by:
getTokenin interfaceTokenGenerator- Returns:
- token generated
Token may be generated as HTTP signature or JWT
-