public interface Encryption
Modifier and Type | Method | Description |
---|---|---|
byte[] |
Decrypt(byte[] data,
java.lang.String key) |
Responsible for decrypting data stored in cache Server.
|
byte[] |
Encrypt(byte[] data,
java.lang.String key) |
Responsible for encrypting serialized data.
|
void |
Intialize(java.util.HashMap parameters) |
Perform tasks like allocating resources or acquiring connections etc.
|
void Intialize(java.util.HashMap parameters)
parameters
- Startup parameters defined in the configuration.byte[] Encrypt(byte[] data, java.lang.String key)
data
- Bytes to be encrypted.key
- The key used for encryption.byte[] Decrypt(byte[] data, java.lang.String key)
data
- decrypted data to be in deserialized form.key
- The key used for encryption.