Class CryptoUtil


  • public class CryptoUtil
    extends Object
    This class will provide the required methods to decrypt given encrypted parameter value.
    • Constructor Detail

      • CryptoUtil

        public CryptoUtil​(Properties secureVaultProperties)
                   throws org.apache.axis2.AxisFault
        Public constructor
        Parameters:
        secureVaultProperties -
        Throws:
        org.apache.axis2.AxisFault
    • Method Detail

      • init

        public void init​(Properties secureVaultProperties)
                  throws org.apache.axis2.AxisFault
        Method to initialise crypto util. which will generate the required cipher etc.
        Parameters:
        secureVaultProperties -
        Throws:
        org.apache.axis2.AxisFault
      • decrypt

        public byte[] decrypt​(byte[] encryptedBytes)
        Method used to decrypt and encode or decode accordingly.
        Parameters:
        encryptedBytes -
        Returns:
        response
      • isInitialized

        public boolean isInitialized()