public interface DataEncryptionProvider
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] value)
Decrypts given value as per the custom encryption logic.
|
byte[] |
decryptIndexedValue(byte[] value)
Decrypts given value as per the custom encryption logic.
|
byte[] |
encrypt(byte[] value)
Encrypts the given value as per the custom encryption logic.
|
byte[] |
encryptForIndexing(byte[] value)
Encrypts the given value as per the custom encryption logic.
|
default Logger |
getLogger()
Retrieve the logger to log messages into OUD instance's
log files.
|
void |
initialize()
This method is called to initialize this custom provider.
|
void |
setConfiguration(CustomProviderConfiguration config)
This method is called to set the configuration of this custom provider.
|
byte[] encrypt(byte[] value) throws CustomProviderException
value
- to encryptCustomProviderException
- in case of errorsbyte[] decrypt(byte[] value) throws CustomProviderException
value
- to decryptCustomProviderException
- in case of errorsbyte[] encryptForIndexing(byte[] value) throws CustomProviderException
value
- to encryptCustomProviderException
- in case of errorsbyte[] decryptIndexedValue(byte[] value) throws CustomProviderException
value
- string to decryptCustomProviderException
- in case of errorsdefault Logger getLogger()
void initialize() throws CustomProviderException
CustomProviderException
- if it fails to initialize successfully.void setConfiguration(CustomProviderConfiguration config) throws CustomProviderException
config
- the configuration of the custom provider.CustomProviderException
- if the new configuration can not be
applied.