public class ConfigPropertiesEncryptor extends PropertiesEncryptor implements Encryptor<Config>
encryptionService
ENCRYPTED_PROPERTY_PREFIX, ENCRYPTED_PROPERTY_SCHEME, NONE
Constructor and Description |
---|
ConfigPropertiesEncryptor(EncryptionService encryptionService) |
Modifier and Type | Method and Description |
---|---|
void |
decryptSensitiveData(Config config)
Decrypts the given decryptible object
|
void |
encryptSensitiveData(Config config)
Encrypts the given encryptible object
|
String |
getEncryptionKey() |
decrypt, encrypt, encrypt, encrypt
@Inject public ConfigPropertiesEncryptor(EncryptionService encryptionService)
public void encryptSensitiveData(Config config)
Encryptor
encryptSensitiveData
in interface Encryptor<Config>
config
- to be encryptedpublic void decryptSensitiveData(Config config)
Encryptor
decryptSensitiveData
in interface Encryptor<Config>
config
- to be decryptedpublic String getEncryptionKey()
getEncryptionKey
in interface Encryptor<Config>
Copyright © 2022 Apache Software Foundation. All rights reserved.