public class AwsKmsEncryptionService extends Object implements EncryptionService
Constructor and Description |
---|
AwsKmsEncryptionService() |
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.
|
AwsKmsEncryptionService |
setClientConf(com.amazonaws.ClientConfiguration clientConf)
AWS client configuration.
|
AwsKmsEncryptionService |
setCredentials(com.amazonaws.auth.AWSCredentials creds)
AWS credentials.
|
AwsKmsEncryptionService |
setKeyId(String keyId)
Set the KMS key id used to encrypt/decrypt the data.
|
AwsKmsEncryptionService |
setRegion(com.amazonaws.regions.Region region)
AWS region.
|
AwsKmsEncryptionService |
setRegion(String region)
AWS region.
|
String |
toString() |
public AwsKmsEncryptionService setKeyId(String keyId)
keyId
- Key id.this
for chaining.public AwsKmsEncryptionService setRegion(com.amazonaws.regions.Region region)
region
- Region.this
for chaining.public AwsKmsEncryptionService setRegion(String region)
region
- Region.this
for chaining.public AwsKmsEncryptionService setCredentials(com.amazonaws.auth.AWSCredentials creds)
creds
- Aws Credentials.this
for chaining.public AwsKmsEncryptionService setClientConf(com.amazonaws.ClientConfiguration clientConf)
clientConf
- Client conf.this
for chaining.public void init()
EncryptionService.encrypt(byte[])
and EncryptionService.decrypt(byte[])
are used.init
in interface EncryptionService
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