Class DefaultLazyPropertyResolver
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.resolver.DefaultLazyPropertyResolver
-
- All Implemented Interfaces:
EncryptablePropertyResolver
public class DefaultLazyPropertyResolver extends Object implements EncryptablePropertyResolver
Default Resolver bean that delegates to a custom definedEncryptablePropertyResolveror creates a newDefaultPropertyResolver- Author:
- Ulises Bocchio
-
-
Constructor Summary
Constructors Constructor Description DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, String customResolverBeanName, boolean isCustom, org.springframework.beans.factory.BeanFactory bf, org.springframework.core.env.Environment environment)DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, org.springframework.core.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringresolvePropertyValue(String value)Returns the unencrypted version of the value provided free on any prefixes/suffixes or any other metadata surrounding the encrypted value.
-
-
-
Constructor Detail
-
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)
-
DefaultLazyPropertyResolver
public DefaultLazyPropertyResolver(EncryptablePropertyDetector propertyDetector, org.jasypt.encryption.StringEncryptor encryptor, org.springframework.core.env.Environment environment)
-
-
Method Detail
-
resolvePropertyValue
public String resolvePropertyValue(String value)
Description copied from interface:EncryptablePropertyResolverReturns 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.
-
-