Class EncryptablePropertyResolverConfiguration
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.configuration.EncryptablePropertyResolverConfiguration
-
@Configuration public class EncryptablePropertyResolverConfiguration extends Object
EncryptablePropertyResolverConfiguration class.
- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILTER_BEAN_NAMEConstantFILTER_BEAN_NAME="lazyEncryptablePropertyFilter"static StringRESOLVER_BEAN_NAMEConstantRESOLVER_BEAN_NAME="lazyEncryptablePropertyResolver"
-
Constructor Summary
Constructors Constructor Description EncryptablePropertyResolverConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Singleton<JasyptEncryptorConfigurationProperties>configProps(EnvCopy envCopy)configProps.EncryptablePropertyDetectorencryptablePropertyDetector(EnvCopy envCopy, org.springframework.beans.factory.BeanFactory bf)encryptablePropertyDetector.EncryptablePropertyFilterencryptablePropertyFilter(EnvCopy envCopy, org.springframework.beans.factory.config.ConfigurableBeanFactory bf)encryptablePropertyFilter.EncryptablePropertyResolverencryptablePropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, org.springframework.beans.factory.BeanFactory bf, EnvCopy envCopy, org.springframework.core.env.ConfigurableEnvironment environment)encryptablePropertyResolver.static EncryptablePropertySourceConverterencryptablePropertySourceConverter(org.springframework.core.env.ConfigurableEnvironment environment, EncryptablePropertyResolver propertyResolver, EncryptablePropertyFilter propertyFilter)encryptablePropertySourceConverter.EnvCopyenvCopy(org.springframework.core.env.ConfigurableEnvironment environment)envCopy.org.jasypt.encryption.StringEncryptorstringEncryptor(EnvCopy envCopy, org.springframework.beans.factory.BeanFactory bf)stringEncryptor.
-
-
-
Field Detail
-
RESOLVER_BEAN_NAME
public static final String RESOLVER_BEAN_NAME
ConstantRESOLVER_BEAN_NAME="lazyEncryptablePropertyResolver"- See Also:
- Constant Field Values
-
FILTER_BEAN_NAME
public static final String FILTER_BEAN_NAME
ConstantFILTER_BEAN_NAME="lazyEncryptablePropertyFilter"- See Also:
- Constant Field Values
-
-
Method Detail
-
encryptablePropertySourceConverter
@Bean public static EncryptablePropertySourceConverter encryptablePropertySourceConverter(org.springframework.core.env.ConfigurableEnvironment environment, @Qualifier("lazyEncryptablePropertyResolver") EncryptablePropertyResolver propertyResolver, @Qualifier("lazyEncryptablePropertyFilter") EncryptablePropertyFilter propertyFilter)
encryptablePropertySourceConverter.
- Parameters:
environment- aConfigurableEnvironmentobjectpropertyResolver- aEncryptablePropertyResolverobjectpropertyFilter- aEncryptablePropertyFilterobject- Returns:
- a
EncryptablePropertySourceConverterobject
-
envCopy
@Bean public EnvCopy envCopy(org.springframework.core.env.ConfigurableEnvironment environment)
envCopy.
- Parameters:
environment- aConfigurableEnvironmentobject- Returns:
- a
EnvCopyobject
-
stringEncryptor
@Bean(name="lazyJasyptStringEncryptor") public org.jasypt.encryption.StringEncryptor stringEncryptor(EnvCopy envCopy, org.springframework.beans.factory.BeanFactory bf)
stringEncryptor.
- Parameters:
envCopy- aEnvCopyobjectbf- aBeanFactoryobject- Returns:
- a
StringEncryptorobject
-
encryptablePropertyDetector
@Bean(name="lazyEncryptablePropertyDetector") public EncryptablePropertyDetector encryptablePropertyDetector(EnvCopy envCopy, org.springframework.beans.factory.BeanFactory bf)
encryptablePropertyDetector.
- Parameters:
envCopy- aEnvCopyobjectbf- aBeanFactoryobject- Returns:
- a
EncryptablePropertyDetectorobject
-
configProps
@Bean(name="configPropsSingleton") public Singleton<JasyptEncryptorConfigurationProperties> configProps(EnvCopy envCopy)
configProps.
-
encryptablePropertyFilter
@Bean(name="lazyEncryptablePropertyFilter") public EncryptablePropertyFilter encryptablePropertyFilter(EnvCopy envCopy, org.springframework.beans.factory.config.ConfigurableBeanFactory bf)
encryptablePropertyFilter.
- Parameters:
envCopy- aEnvCopyobjectbf- aConfigurableBeanFactoryobject- Returns:
- a
EncryptablePropertyFilterobject
-
encryptablePropertyResolver
@Bean(name="lazyEncryptablePropertyResolver") public EncryptablePropertyResolver encryptablePropertyResolver(@Qualifier("lazyEncryptablePropertyDetector") EncryptablePropertyDetector propertyDetector, @Qualifier("lazyJasyptStringEncryptor") org.jasypt.encryption.StringEncryptor encryptor, org.springframework.beans.factory.BeanFactory bf, EnvCopy envCopy, org.springframework.core.env.ConfigurableEnvironment environment)
encryptablePropertyResolver.
- Parameters:
propertyDetector- aEncryptablePropertyDetectorobjectencryptor- aStringEncryptorobjectbf- aBeanFactoryobjectenvCopy- aEnvCopyobjectenvironment- aConfigurableEnvironmentobject- Returns:
- a
EncryptablePropertyResolverobject
-
-