public abstract class RuntimeEncrypter extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX |
static String |
SUFFIX |
| Constructor and Description |
|---|
RuntimeEncrypter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsEncryptionExpression(String value)
Checks if the string contains the encryption suffix and prefix, indicating that the value is already encrypted
|
abstract String |
decrypt(String valueToDecrypt)
Decrypts a single value
|
abstract String |
encrypt(String valueToEncrypt)
Encrypts a single value.
|
protected String |
extractValueFromExpression(String value) |
public static final String PREFIX
public static final String SUFFIX
public abstract String encrypt(String valueToEncrypt) throws GatewayEncryptionException
valueToEncrypt - The value that should be encryptedGatewayEncryptionException - When there was an error while trying to encryptpublic abstract String decrypt(String valueToDecrypt) throws GatewayEncryptionException
valueToDecrypt - The value that should be decryptedGatewayEncryptionException - When there was an error while trying to decryptprotected boolean containsEncryptionExpression(String value)
value - The value to checkCopyright © 2014–2023 MuleSoft, Inc.. All rights reserved.