Class ObfuscatedSupportBeanFactoryPostProcessor

java.lang.Object
com.github.robtimus.obfuscation.spring.ObfuscatedSupportBeanFactoryPostProcessor
All Implemented Interfaces:
BeanFactoryPostProcessor

public class ObfuscatedSupportBeanFactoryPostProcessor extends Object implements BeanFactoryPostProcessor
A 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:

  1. Finding the value to obfuscate. This is done using the default mechanisms. A field, constructor argument or method argument can be annotated with Value, it can be a bean, or anything else that has default autowiring support.
  2. Finding the obfuscator to use. The type of Obfuscator is determined as follows:
  3. Finding the character representation to use. This is done by annotating the field, constructor argument or method argument with 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.

Author:
Rob Spoor