Class DefaultLazyPropertyResolver
java.lang.Object
com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver
- All Implemented Interfaces:
EncryptablePropertyResolver
Default Resolver bean that delegates to a custom defined
EncryptablePropertyResolver or creates a new DefaultPropertyResolver- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, String customResolverBeanName, boolean isCustom, org.springframework.beans.factory.BeanFactory bf, org.springframework.core.env.Environment environment) Constructor for DefaultLazyPropertyResolver.DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, org.springframework.core.env.Environment environment) Constructor for DefaultLazyPropertyResolver. -
Method Summary
Modifier and TypeMethodDescriptionresolvePropertyValue(String value) Returns the unencrypted version of the value provided free on any prefixes/suffixes or any other metadata surrounding the encrypted value.
-
Constructor Details
-
DefaultLazyPropertyResolver
public DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, String customResolverBeanName, boolean isCustom, org.springframework.beans.factory.BeanFactory bf, org.springframework.core.env.Environment environment) Constructor for DefaultLazyPropertyResolver.
- Parameters:
propertyDetector- aEncryptablePropertyDetectorobjectencryptor- aStringEncryptorobjectcustomResolverBeanName- aStringobjectisCustom- a booleanbf- aBeanFactoryobjectenvironment- aEnvironmentobject
-
DefaultLazyPropertyResolver
public DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, org.springframework.core.env.Environment environment) Constructor for DefaultLazyPropertyResolver.
- Parameters:
propertyDetector- aEncryptablePropertyDetectorobjectencryptor- aStringEncryptorobjectenvironment- aEnvironmentobject
-
-
Method Details
-
resolvePropertyValue
Returns the unencrypted version of the value provided free on any prefixes/suffixes or any other metadata surrounding the encrypted value. Or the actual same String if no encryption was detected.- Specified by:
resolvePropertyValuein interfaceEncryptablePropertyResolver- Parameters:
value- the property value- Returns:
- either the same value if the value is not encrypted, or the decrypted version.
-