This mediator can be used with WSO2 Class Mediator.
Even though AES256 is the only implemented algorithm here, any algorithm can be implemented according to the requirement.
- Build the mediator by executing
mvn clean install
. - Copy the
target\encryption-mediator-1.0-SNAPSHOT.jar
jar into<EI_Home>\lib
directory. - Provide the fully qualified class name as
com.rnavagamuwa.EncryptionMediator
orcom.rnavagamuwa.DecryptionMediator
as required. - Encryption mediator read the "string to be encrypted" from "stringToBeEncrypted" property and set the "encrypted String" to "encryptedString" property.
- Decryption mediator read the "encrypted String" from "encryptedString" property and set the "decrypted String" to "decryptedString" property.