|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer
public final class EncryptablePropertyPlaceholderConfigurer
Subclass of
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
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.
Field Summary |
---|
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
---|
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
---|
logger, XML_FILE_EXTENSION |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
EncryptablePropertyPlaceholderConfigurer(StringEncryptor stringEncryptor)
Deprecated. Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the passed StringEncryptor object to decrypt
encrypted values. |
|
EncryptablePropertyPlaceholderConfigurer(TextEncryptor textEncryptor)
Deprecated. Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the passed TextEncryptor object to decrypt encrypted values. |
Method Summary | |
---|---|
protected String |
convertPropertyValue(String originalValue)
Deprecated. |
protected String |
resolveSystemProperty(String key)
Deprecated. |
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
---|
parseStringValue, processProperties, resolvePlaceholder, resolvePlaceholder, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
---|
convertProperties, getOrder, postProcessBeanFactory, setOrder |
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
---|
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EncryptablePropertyPlaceholderConfigurer(StringEncryptor stringEncryptor)
Creates an EncryptablePropertyPlaceholderConfigurer 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 EncryptablePropertyPlaceholderConfigurer(TextEncryptor textEncryptor)
Creates an EncryptablePropertyPlaceholderConfigurer 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.Method Detail |
---|
protected String convertPropertyValue(String originalValue)
convertPropertyValue
in class org.springframework.beans.factory.config.PropertyResourceConfigurer
protected String resolveSystemProperty(String key)
resolveSystemProperty
in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |