public class AwsKmsSensitivePropertyProvider extends ClientBasedEncodedSensitivePropertyProvider<software.amazon.awssdk.services.kms.KmsClient>
| Modifier and Type | Field and Description |
|---|---|
private static String |
IDENTIFIER_KEY |
protected static String |
KEY_ID_PROPERTY |
logger| Constructor and Description |
|---|
AwsKmsSensitivePropertyProvider(software.amazon.awssdk.services.kms.KmsClient kmsClient,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Close KMS Client when configured
|
protected byte[] |
getDecrypted(byte[] bytes)
Get decrypted bytes
|
protected byte[] |
getEncrypted(byte[] bytes)
Get encrypted bytes
|
String |
getIdentifierKey() |
private String |
getKeyId() |
protected void |
validate(software.amazon.awssdk.services.kms.KmsClient kmsClient)
Validate Client and Key Identifier status when client is configured
|
getClient, getProperties, isSupportedprotect, unprotectprotected static final String KEY_ID_PROPERTY
private static final String IDENTIFIER_KEY
AwsKmsSensitivePropertyProvider(software.amazon.awssdk.services.kms.KmsClient kmsClient,
Properties properties)
throws SensitivePropertyProtectionException
public String getIdentifierKey()
public void cleanUp()
cleanUp in interface SensitivePropertyProvidercleanUp in class ClientBasedEncodedSensitivePropertyProvider<software.amazon.awssdk.services.kms.KmsClient>protected void validate(software.amazon.awssdk.services.kms.KmsClient kmsClient)
validate in class ClientBasedEncodedSensitivePropertyProvider<software.amazon.awssdk.services.kms.KmsClient>kmsClient - KMS Clientprotected byte[] getEncrypted(byte[] bytes)
getEncrypted in class EncodedSensitivePropertyProviderbytes - Unprotected bytesprotected byte[] getDecrypted(byte[] bytes)
getDecrypted in class EncodedSensitivePropertyProviderbytes - Encrypted bytesprivate String getKeyId()
Copyright © 2023 Apache NiFi Project. All rights reserved.