Class CryptoUtil

java.lang.Object
org.apache.synapse.commons.crypto.CryptoUtil

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

    • CryptoUtil

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

    • 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()