public final class EncryptablePreferencesPlaceholderConfigurer
extends org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
Subclass of
org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer
which can make use of a StringEncryptor or
TextEncryptor object to decrypt preferences values
if they are encrypted in the loaded resource locations.
A value is considered "encrypted" when it appears surrounded by ENC(...), like:
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE| Constructor and Description |
|---|
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
Deprecated.
Creates an EncryptablePreferencesPlaceholderConfigurer instance
which will use the passed
StringEncryptor object to decrypt
encrypted values. |
EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
Deprecated.
Creates an EncryptablePreferencesPlaceholderConfigurer instance which will use the
passed
TextEncryptor object to decrypt encrypted values. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
convertPropertyValue(String originalValue)
Deprecated.
|
afterPropertiesSet, resolvePlaceholder, resolvePlaceholder, setSystemTreePath, setUserTreePathparseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeNameconvertProperties, getOrder, postProcessBeanFactory, setOrderpublic EncryptablePreferencesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
Creates an EncryptablePreferencesPlaceholderConfigurer 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 EncryptablePreferencesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
Creates an EncryptablePreferencesPlaceholderConfigurer 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.