public class EnableEncryptablePropertySourcesPostProcessor extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>, org.springframework.core.Ordered
BeanFactoryPostProcessor that wraps all PropertySource defined in the Environment
with EncryptablePropertySourceWrapper and defines a default StringEncryptor for decrypting properties
that can be configured through the same properties it wraps.
It takes the lowest precedence so it does not interfere with Spring Boot's own post processors
| Constructor and Description |
|---|
EnableEncryptablePropertySourcesPostProcessor() |
EnableEncryptablePropertySourcesPostProcessor(org.springframework.core.env.ConfigurableEnvironment environment,
InterceptionMode interceptionMode) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
public EnableEncryptablePropertySourcesPostProcessor()
public EnableEncryptablePropertySourcesPostProcessor(org.springframework.core.env.ConfigurableEnvironment environment,
InterceptionMode interceptionMode)
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>Copyright © 2016. All rights reserved.