public class DefaultPropertyFilter extends Object implements EncryptablePropertyFilter
includeSourceNames: To include property sources by name, provide a list of regex. If set, property sources that don't match will be excluded includePropertyNames: To include properties by name, provide a list of regex. If set, properties that don't match will be excluded
| Constructor and Description |
|---|
DefaultPropertyFilter() |
DefaultPropertyFilter(List<String> includeSourceNames,
List<String> excludeSourceNames,
List<String> includePropertyNames,
List<String> excludePropertyNames) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean shouldInclude(org.springframework.core.env.PropertySource<?> source,
String name)
EncryptablePropertyFiltershouldInclude in interface EncryptablePropertyFiltersource - 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.Copyright © 2018. All rights reserved.