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 Summary
Constructors Constructor Description CryptoUtil(Properties secureVaultProperties)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decrypt(byte[] encryptedBytes)
Method used to decrypt and encode or decode accordingly.void
init(Properties secureVaultProperties)
Method to initialise crypto util.boolean
isInitialized()
-
-
-
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 chiper 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()
-
-