Class CryptoUtil
java.lang.Object
org.apache.synapse.commons.crypto.CryptoUtil
This class will provide the required methods to decrypt given encrypted parameter value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(byte[] encryptedBytes) Method used to decrypt and encode or decode accordingly.voidinit(Properties secureVaultProperties) Method to initialise crypto util.boolean
-
Constructor Details
-
CryptoUtil
Public constructor- Parameters:
secureVaultProperties-- Throws:
org.apache.axis2.AxisFault
-
-
Method Details
-
init
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()
-