Class DefaultAcceleratorDigestUtils
java.lang.Object
de.hybris.platform.acceleratorservices.payment.utils.impl.DefaultAcceleratorDigestUtils
- All Implemented Interfaces:
AcceleratorDigestUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetPublicDigest(String customValues, String key) Utility method used for encrypting data used to secure communication with the Payment Provider's server utilizing HmacSHA1 mac algorithmvoidsetMacAlgorithm(String macAlgorithm)
-
Constructor Details
-
DefaultAcceleratorDigestUtils
public DefaultAcceleratorDigestUtils()
-
-
Method Details
-
getPublicDigest
public String getPublicDigest(String customValues, String key) throws NoSuchAlgorithmException, InvalidKeyException Description copied from interface:AcceleratorDigestUtilsUtility method used for encrypting data used to secure communication with the Payment Provider's server utilizing HmacSHA1 mac algorithm- Specified by:
getPublicDigestin interfaceAcceleratorDigestUtils- Parameters:
customValues- - a String representation of all the data that requires securing.key- - a security key provided by PSP used to ensure each transaction is protected during it's transmission across the Internet.- Returns:
- - an encrypted String that is deemed secure for communication with PSP
- Throws:
NoSuchAlgorithmException- when attempting to get a Message Authentication Code algorithm.InvalidKeyException- if the given key is inappropriate for initializing this MAC.
-
getMacAlgorithm
-
setMacAlgorithm
-