Interface EncryptablePropertyFilter
-
- All Known Implementing Classes:
DefaultLazyPropertyFilter,DefaultPropertyFilter
public interface EncryptablePropertyFilterInterface that provides the contract for what property sources and/or properties should be inspected for encryption. This allows a decision point beforeEncryptablePropertyResolveris invoked, and thereby can also be used to avoid scenarios where inspection is unwanted due to initialization conflicts, such as circular dependencies.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
shouldInclude
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.- 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.
-
-