Class EnableEncryptablePropertiesConfiguration
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.configuration.EnableEncryptablePropertiesConfiguration
-
@Configuration @Import({EncryptablePropertyResolverConfiguration.class,CachingConfiguration.class}) public class EnableEncryptablePropertiesConfiguration extends ObjectConfiguration class that registers a
BeanFactoryPostProcessorthat wraps allPropertySourcedefined in theEnvironmentwithEncryptablePropertySourceWrapperand defines a defaultStringEncryptorfor decrypting properties that can be configured through the same properties it wraps.The
StringEncryptorbean is only defined when no other bean of typeStringEncryptoris present in the Application Context, thus allowing for custom definition if required.The default
StringEncryptorcan be configured through the following properties:Key Required Default Value jasypt.encryptor.password True - jasypt.encryptor.algorithm False PBEWITHHMACSHA512ANDAES_256 jasypt.encryptor.keyObtentionIterations False 1000 jasypt.encryptor.poolSize False 1 jasypt.encryptor.providerName False SunJCE jasypt.encryptor.saltGeneratorClassname False org.jasypt.salt.RandomSaltGenerator jasypt.encryptor.ivGeneratorClassname False org.jasypt.iv.RandomIvGenerator jasypt.encryptor.stringOutputType False base64 For mor information about the configuration properties
- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
- See Also:
StringPBEConfig
-
-
Constructor Summary
Constructors Constructor Description EnableEncryptablePropertiesConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EnableEncryptablePropertiesBeanFactoryPostProcessorenableEncryptablePropertySourcesPostProcessor(org.springframework.core.env.ConfigurableEnvironment environment, EncryptablePropertySourceConverter converter)enableEncryptablePropertySourcesPostProcessor.
-
-
-
Method Detail
-
enableEncryptablePropertySourcesPostProcessor
@Bean public static EnableEncryptablePropertiesBeanFactoryPostProcessor enableEncryptablePropertySourcesPostProcessor(org.springframework.core.env.ConfigurableEnvironment environment, EncryptablePropertySourceConverter converter)
enableEncryptablePropertySourcesPostProcessor.
- Parameters:
environment- aConfigurableEnvironmentobjectconverter- aEncryptablePropertySourceConverterobject- Returns:
- a
EnableEncryptablePropertiesBeanFactoryPostProcessorobject
-
-