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

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - 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 Details

    • 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.