public class AsymmetricKeyEncryptionService extends Object implements EncryptionService
Constructor and Description |
---|
AsymmetricKeyEncryptionService() |
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.
|
void |
setKeyPair(KeyPair keyPair)
Set the public private key pair.
|
String |
toString() |
public void setKeyPair(KeyPair keyPair)
keyPair
- Key pair of Public and Private key.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