public class GcpKmsSensitivePropertyProvider extends ClientBasedEncodedSensitivePropertyProvider<com.google.cloud.kms.v1.KeyManagementServiceClient>
| Modifier and Type | Field and Description |
|---|---|
private com.google.cloud.kms.v1.CryptoKeyName |
cryptoKeyName |
protected static String |
KEY_PROPERTY |
protected static String |
KEYRING_PROPERTY |
protected static String |
LOCATION_PROPERTY |
protected static String |
PROJECT_PROPERTY |
private static String |
SCHEME_BASE_PATH |
logger| Constructor and Description |
|---|
GcpKmsSensitivePropertyProvider(com.google.cloud.kms.v1.KeyManagementServiceClient keyManagementServiceClient,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
Close Client when configured
|
protected byte[] |
getDecrypted(byte[] bytes)
Get decrypted bytes
|
protected byte[] |
getEncrypted(byte[] bytes)
Get encrypted bytes
|
String |
getIdentifierKey() |
protected void |
validate(com.google.cloud.kms.v1.KeyManagementServiceClient keyManagementServiceClient)
Validate Client and Key Operations with Encryption Algorithm when configured
|
getClient, getProperties, isSupportedprotect, unprotectprotected static final String PROJECT_PROPERTY
protected static final String LOCATION_PROPERTY
protected static final String KEYRING_PROPERTY
protected static final String KEY_PROPERTY
private static final String SCHEME_BASE_PATH
private com.google.cloud.kms.v1.CryptoKeyName cryptoKeyName
GcpKmsSensitivePropertyProvider(com.google.cloud.kms.v1.KeyManagementServiceClient keyManagementServiceClient,
Properties properties)
public String getIdentifierKey()
public void cleanUp()
cleanUp in interface SensitivePropertyProvidercleanUp in class ClientBasedEncodedSensitivePropertyProvider<com.google.cloud.kms.v1.KeyManagementServiceClient>protected void validate(com.google.cloud.kms.v1.KeyManagementServiceClient keyManagementServiceClient)
validate in class ClientBasedEncodedSensitivePropertyProvider<com.google.cloud.kms.v1.KeyManagementServiceClient>keyManagementServiceClient - Key Management Service Clientprotected byte[] getEncrypted(byte[] bytes)
getEncrypted in class EncodedSensitivePropertyProviderbytes - Unprotected bytesprotected byte[] getDecrypted(byte[] bytes)
getDecrypted in class EncodedSensitivePropertyProviderbytes - Encrypted bytesCopyright © 2023 Apache NiFi Project. All rights reserved.