Class DefaultLazyPropertyFilter

    • 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 - a ConfigurableEnvironment object
        customFilterBeanName - a String object
        isCustom - a boolean
        bf - a BeanFactory object
      • DefaultLazyPropertyFilter

        public DefaultLazyPropertyFilter​(org.springframework.core.env.ConfigurableEnvironment environment)

        Constructor for DefaultLazyPropertyFilter.

        Parameters:
        environment - a ConfigurableEnvironment object
    • 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:
        shouldInclude in interface EncryptablePropertyFilter
        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.