public class ObfuscatedSupportBeanFactoryPostProcessor extends Object implements BeanFactoryPostProcessor
BeanFactoryPostProcessor that adds support for autowiring Obfuscated instances.
If an instance of this class is activated, it will allow instances of Obfuscated to be autowired.
This autowiring consists of three steps:
Value, it can be a bean, or anything else that has default autowiring support.
Obfuscator is determined as follows:
Obfuscated field, constructor argument or method argument is annotated with an Obfuscator annotation like
ObfuscateAll, ObfuscateFixedLength or ObfuscateUsing, the autowired Obfuscated will match the annotation.
Obfuscator is available, that will be autowired.Obfuscator will be autowired. This will be the result of calling
Obfuscator.fixedLength(3).RepresentedBy. If this annotation is absent, the
default character representation is used.
The Obfuscator and character representation are used to wrap the value to obfuscate in an Obfuscated instance, which will then be
autowired.
| Constructor and Description |
|---|
ObfuscatedSupportBeanFactoryPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
public ObfuscatedSupportBeanFactoryPostProcessor()
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException
postProcessBeanFactory in interface BeanFactoryPostProcessorBeansExceptionCopyright © 2020–2023. All rights reserved.