Interface EncryptablePropertyFilter

  • All Known Implementing Classes:
    DefaultLazyPropertyFilter, DefaultPropertyFilter

    public interface EncryptablePropertyFilter
    Interface that provides the contract for what property sources and/or properties should be inspected for encryption. This allows a decision point before EncryptablePropertyResolver is invoked, and thereby can also be used to avoid scenarios where inspection is unwanted due to initialization conflicts, such as circular dependencies.
    Version:
    $Id: $Id
    Author:
    Sergio.U.Bocchio
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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.
    • 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.