Class DefaultLazyPropertyFilter
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter
-
- All Implemented Interfaces:
EncryptablePropertyFilter
public class DefaultLazyPropertyFilter extends Object implements EncryptablePropertyFilter
DefaultLazyPropertyFilter class.
- Version:
- $Id: $Id
- Author:
- Sergio.U.Bocchio
-
-
Constructor Summary
Constructors Constructor Description DefaultLazyPropertyFilter(org.springframework.core.env.ConfigurableEnvironment environment)Constructor for DefaultLazyPropertyFilter.DefaultLazyPropertyFilter(org.springframework.core.env.ConfigurableEnvironment e, String customFilterBeanName, boolean isCustom, org.springframework.beans.factory.BeanFactory bf)Constructor for DefaultLazyPropertyFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldInclude(org.springframework.core.env.PropertySource<?> source, String name)Given a property source and a property name, returns true if the property should be analyzed for decryption.
-
-
-
Constructor Detail
-
DefaultLazyPropertyFilter
public DefaultLazyPropertyFilter(org.springframework.core.env.ConfigurableEnvironment e, String customFilterBeanName, boolean isCustom, org.springframework.beans.factory.BeanFactory bf)Constructor for DefaultLazyPropertyFilter.
- Parameters:
e- aConfigurableEnvironmentobjectcustomFilterBeanName- aStringobjectisCustom- a booleanbf- aBeanFactoryobject
-
DefaultLazyPropertyFilter
public DefaultLazyPropertyFilter(org.springframework.core.env.ConfigurableEnvironment environment)
Constructor for DefaultLazyPropertyFilter.
- Parameters:
environment- aConfigurableEnvironmentobject
-
-
Method Detail
-
shouldInclude
public boolean shouldInclude(org.springframework.core.env.PropertySource<?> source, String name)Given a property source and a property name, returns true if the property should be analyzed for decryption.- Specified by:
shouldIncludein interfaceEncryptablePropertyFilter- Parameters:
source- The property source, useful to enabled/disable encryption for specific property sources.name- The actual property being requested, useful to enable/disable encryption for specific properties/patterns.- Returns:
- true if the property should be considered for decryption.
-
-