Class DefaultAcceleratorDigestUtils

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getMacAlgorithm()  
      java.lang.String getPublicDigest​(java.lang.String customValues, java.lang.String key)
      Utility method used for encrypting data used to secure communication with the Payment Provider's server utilizing HmacSHA1 mac algorithm
      void setMacAlgorithm​(java.lang.String macAlgorithm)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAcceleratorDigestUtils

        public DefaultAcceleratorDigestUtils()
    • Method Detail

      • getPublicDigest

        public java.lang.String getPublicDigest​(java.lang.String customValues,
                                                java.lang.String key)
                                         throws java.security.NoSuchAlgorithmException,
                                                java.security.InvalidKeyException
        Description copied from interface: AcceleratorDigestUtils
        Utility method used for encrypting data used to secure communication with the Payment Provider's server utilizing HmacSHA1 mac algorithm
        Specified by:
        getPublicDigest in interface AcceleratorDigestUtils
        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:
        java.security.NoSuchAlgorithmException - when attempting to get a Message Authentication Code algorithm.
        java.security.InvalidKeyException - if the given key is inappropriate for initializing this MAC.
      • getMacAlgorithm

        protected java.lang.String getMacAlgorithm()
      • setMacAlgorithm

        public void setMacAlgorithm​(java.lang.String macAlgorithm)