public final class EncryptablePropertyOverrideConfigurer
extends org.springframework.beans.factory.config.PropertyOverrideConfigurer
Subclass of
org.springframework.beans.factory.config.PropertyOverrideConfigurer
which can make use of a StringEncryptor or
TextEncryptor object to decrypt property values
if they are encrypted in the loaded resource locations.
A value is considered "encrypted" when it appears surrounded by ENC(...), like:
Encrypted and unencrypted objects can be combined in the same resources file.
DEFAULT_BEAN_NAME_SEPARATOR| Constructor and Description |
|---|
EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
Creates an EncryptablePropertyOverrideConfigurer instance
which will use the passed
StringEncryptor object to decrypt
encrypted values. |
EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
Creates an EncryptablePropertyOverrideConfigurer instance which will use the
passed
TextEncryptor object to decrypt encrypted values. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertPropertyValue(String originalValue) |
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeysconvertProperties, convertProperty, getOrder, postProcessBeanFactory, setOrderpublic EncryptablePropertyOverrideConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
Creates an EncryptablePropertyOverrideConfigurer instance
which will use the passed StringEncryptor object to decrypt
encrypted values.
stringEncryptor - the StringEncryptor to be used do decrypt values. It
can not be null.public EncryptablePropertyOverrideConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
Creates an EncryptablePropertyOverrideConfigurer instance which will use the
passed TextEncryptor object to decrypt encrypted values.
textEncryptor - the TextEncryptor to be used do decrypt values. It can
not be null.Copyright © 2019 The JASYPT team. All rights reserved.