Class EnableEncryptablePropertiesConfiguration


  • @Configuration
    @Import({EncryptablePropertyResolverConfiguration.class,CachingConfiguration.class})
    public class EnableEncryptablePropertiesConfiguration
    extends Object

    Configuration class that registers a BeanFactoryPostProcessor that wraps all PropertySource defined in the Environment with EncryptablePropertySourceWrapper and defines a default StringEncryptor for decrypting properties that can be configured through the same properties it wraps.

    The StringEncryptor bean is only defined when no other bean of type StringEncryptor is present in the Application Context, thus allowing for custom definition if required.

    The default StringEncryptor can be configured through the following properties:

    KeyRequiredDefault Value
    jasypt.encryptor.passwordTrue -
    jasypt.encryptor.algorithmFalsePBEWITHHMACSHA512ANDAES_256
    jasypt.encryptor.keyObtentionIterationsFalse1000
    jasypt.encryptor.poolSizeFalse1
    jasypt.encryptor.providerNameFalseSunJCE
    jasypt.encryptor.saltGeneratorClassnameFalseorg.jasypt.salt.RandomSaltGenerator
    jasypt.encryptor.ivGeneratorClassnameFalseorg.jasypt.iv.RandomIvGenerator
    jasypt.encryptor.stringOutputTypeFalsebase64

    For mor information about the configuration properties

    Version:
    $Id: $Id
    Author:
    Ulises Bocchio
    See Also:
    StringPBEConfig