Interface ValueEncryptionPlugin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
encrypt(String parameterName, Object value, ValueEncryptionContext context)
Encrypt value.boolean
isEnabled()
When a value needs to be encrypted, the first enabled encryption plugin is used.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
When a value needs to be encrypted, the first enabled encryption plugin is used. Via this method plugin implementations can report whether they are configured properly and can be used.- Returns:
- true if Encryption plugin is configured properly.
-
encrypt
Object encrypt(String parameterName, Object value, ValueEncryptionContext context)
Encrypt value.- Parameters:
parameterName
- Parameter namevalue
- Unencrypted valuecontext
- Context- Returns:
- Encrypted value.
- Throws:
UnsupportedOperationException
- when the plugin is not enabled.
-
-