public class SymmetricKeyEncryptionService extends Object implements EncryptionService
Constructor and Description |
---|
SymmetricKeyEncryptionService() |
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] data)
Decrypt the input data.
|
byte[] |
encrypt(byte[] data)
Encrypt the input data.
|
void |
init()
For initialization operations.
|
SymmetricKeyEncryptionService |
setSecretKey(Key secretKey)
The key used to encrypt and decrypt the data.
|
String |
toString() |
public SymmetricKeyEncryptionService setSecretKey(Key secretKey)
secretKey
- Secret key.this
for chaining.public void init() throws IgniteException
EncryptionService.encrypt(byte[])
and EncryptionService.decrypt(byte[])
are used.init
in interface EncryptionService
IgniteException
public byte[] encrypt(byte[] data)
encrypt
in interface EncryptionService
data
- Data. bytes to be encrypted.public byte[] decrypt(byte[] data)
decrypt
in interface EncryptionService
data
- Encrypted data.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024