public final class EncryptablePropertySourcesPlaceholderConfigurer
extends org.springframework.context.support.PropertySourcesPlaceholderConfigurer
ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, valueSeparator
Constructor and Description |
---|
EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.encryption.StringEncryptor stringEncryptor)
Creates an EncryptablePropertyPlaceholderConfigurer instance
which will use the passed
StringEncryptor object to decrypt
encrypted values. |
EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.util.text.TextEncryptor textEncryptor)
Creates an EncryptablePropertyPlaceholderConfigurer instance which will use the
passed
TextEncryptor object to decrypt encrypted values. |
Modifier and Type | Method and Description |
---|---|
protected void |
convertProperties(Properties props) |
protected String |
convertPropertyValue(String originalValue) |
protected Properties |
mergeProperties() |
postProcessBeanFactory, processProperties, processProperties, setEnvironment, setPropertySources
doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setValueSeparator
convertProperty, getOrder, setOrder
public EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.encryption.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 EncryptablePropertySourcesPlaceholderConfigurer(org.jasypt.util.text.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.protected Properties mergeProperties() throws IOException
mergeProperties
in class org.springframework.core.io.support.PropertiesLoaderSupport
IOException
protected void convertProperties(Properties props)
convertProperties
in class org.springframework.beans.factory.config.PropertyResourceConfigurer
Copyright © 2019 The JASYPT team. All rights reserved.