public class KeyvalueEncrypter extends PolicyTypeEncrypter<Map<String,Object>>
TEMPLATE_PREFIX, TEMPLATE_SUFFIX| Constructor and Description |
|---|
KeyvalueEncrypter(com.mulesoft.mule.runtime.gw.internal.encryption.RuntimeEncrypter runtimeEncrypter,
boolean isSensitiveOnlyEnabled,
List<PolicyProperty> policyProperties) |
| Modifier and Type | Method and Description |
|---|---|
protected EncryptedValueResult |
decryptSingle(String key,
Map<String,Object> keyvalue)
Decrypts the given value if it is encrypted.
|
protected EncryptedValueResult |
encryptSingle(String rootKey,
Map<String,Object> keyvalue)
Encrypts the given value
|
protected boolean |
supports(String key,
Optional<PolicyProperty> property) |
decrypt, encrypt, encrypt, supportspublic KeyvalueEncrypter(com.mulesoft.mule.runtime.gw.internal.encryption.RuntimeEncrypter runtimeEncrypter,
boolean isSensitiveOnlyEnabled,
List<PolicyProperty> policyProperties)
protected EncryptedValueResult encryptSingle(String rootKey, Map<String,Object> keyvalue)
PolicyTypeEncrypterencryptSingle in class PolicyTypeEncrypter<Map<String,Object>>rootKey - the key of the config data valuekeyvalue - the actual value to encrypt or decryptEncryptedValueResult containing the result of the processprotected EncryptedValueResult decryptSingle(String key, Map<String,Object> keyvalue)
PolicyTypeEncrypterdecryptSingle in class PolicyTypeEncrypter<Map<String,Object>>key - the key of the config data valuekeyvalue - the actual value to encrypt or decryptEncryptedValueResult containing the result of the processprotected boolean supports(String key, Optional<PolicyProperty> property)
supports in class PolicyTypeEncrypter<Map<String,Object>>Copyright © 2014–2025 MuleSoft, Inc.. All rights reserved.