public class CyberSourceSAHMACTools
extends java.lang.Object
Constructor and Description |
---|
CyberSourceSAHMACTools() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getBase64EncodedSignature(java.lang.String secret,
java.lang.String signingData)
Get a HMAC signature using the specified secret
|
static boolean |
verifyBase64EncodedSignature(java.lang.String secret,
java.lang.String sig,
java.lang.String signedData)
Verify the signature
|
public static java.lang.String getBase64EncodedSignature(java.lang.String secret, java.lang.String signingData)
secret
- the secretsigningData
- the signingDatapublic static boolean verifyBase64EncodedSignature(java.lang.String secret, java.lang.String sig, java.lang.String signedData)
secret
- the secretsig
- the sigsignedData
- the signedDataCopyright © 2018 DS Data Systems UK Ltd.