org.jasypt.spring31.properties
Class EncryptableServletContextPropertyPlaceholderConfigurer
Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
org.jasypt.spring31.properties.EncryptableServletContextPropertyPlaceholderConfigurer
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered, org.springframework.web.context.ServletContextAware
public final class EncryptableServletContextPropertyPlaceholderConfigurer
- extends org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
Subclass of
org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
which can make use of a StringEncryptor
or
TextEncryptor
object to decrypt servlet context parameter values
if they are encrypted in the loaded resource locations.
A value is considered "encrypted" when it appears surrounded by
ENC(...), like:
<param-value>ENC(!"DGAS24FaIO$)</param-value>
- Since:
- 1.9.0
- Author:
- Daniel Fernández
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE |
Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport |
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator |
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport |
localOverride, localProperties, logger, XML_FILE_EXTENSION |
Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Methods inherited from class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer |
resolvePlaceholder, setContextOverride, setSearchContextAttributes, setServletContext |
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer |
parseStringValue, processProperties, resolvePlaceholder, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName |
Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport |
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator |
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer |
convertProperties, convertProperty, 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 |
EncryptableServletContextPropertyPlaceholderConfigurer
public EncryptableServletContextPropertyPlaceholderConfigurer(StringEncryptor stringEncryptor)
Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance
which will use the passed StringEncryptor
object to decrypt
encrypted values.
- Parameters:
stringEncryptor
- the StringEncryptor
to be used do decrypt values. It
can not be null.
EncryptableServletContextPropertyPlaceholderConfigurer
public EncryptableServletContextPropertyPlaceholderConfigurer(TextEncryptor textEncryptor)
Creates an EncryptableServletContextPropertyPlaceholderConfigurer instance which will use the
passed TextEncryptor
object to decrypt encrypted values.
- Parameters:
textEncryptor
- the TextEncryptor
to be used do decrypt values. It can
not be null.
convertPropertyValue
protected String convertPropertyValue(String originalValue)
- Overrides:
convertPropertyValue
in class org.springframework.beans.factory.config.PropertyResourceConfigurer
resolvePlaceholder
protected String resolvePlaceholder(String placeholder,
Properties props)
- Overrides:
resolvePlaceholder
in class org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer
Copyright © 2011 The JASYPT team. All Rights Reserved.