Class DefaultLazyPropertyFilter
java.lang.Object
com.ulisesbocchio.jasyptspringboot.filter.DefaultLazyPropertyFilter
- All Implemented Interfaces:
EncryptablePropertyFilter
DefaultLazyPropertyFilter class.
- Version:
- $Id: $Id
- Author:
- Sergio.U.Bocchio
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLazyPropertyFilter(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
Modifier and TypeMethodDescriptionbooleanshouldInclude(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 Details
-
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 Details
-
shouldInclude
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.
-