Class EncryptablePropertySourceWrapper<T>

  • All Implemented Interfaces:
    EncryptablePropertySource<T>, org.springframework.boot.origin.OriginLookup<String>

    public class EncryptablePropertySourceWrapper<T>
    extends org.springframework.core.env.PropertySource<T>
    implements EncryptablePropertySource<T>

    Wrapper for PropertySource instances that simply delegates the getProperty(java.lang.String) method to the PropertySource delegate instance to retrieve properties, while checking if the resulting property is encrypted or not using the Jasypt convention of surrounding encrypted values with "ENC()".

    When an encrypted property is detected, it is decrypted using the provided StringEncryptor

    Version:
    $Id: $Id
    Author:
    Ulises Bocchio