public class EncryptablePropertySourceWrapper<T> extends org.springframework.core.env.PropertySource<T> implements EncryptablePropertySource<T>
Wrapper for PropertySource instances that simply delegates the getProperty(java.lang.String) method
to the PropertySource delegate instance to retrieve properties, while checking if the resulting
property is encrypted or not using the Jasypt convention of surrounding encrypted values with "ENC()".
When an encrypted property is detected, it is decrypted using the provided StringEncryptor
org.springframework.core.env.PropertySource.StubPropertySourceEncryptablePropertySource.DefaultMethods<T>| Constructor and Description |
|---|
EncryptablePropertySourceWrapper(org.springframework.core.env.PropertySource<T> delegate,
org.jasypt.encryption.StringEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getProperty(String name) |
public EncryptablePropertySourceWrapper(org.springframework.core.env.PropertySource<T> delegate, org.jasypt.encryption.StringEncryptor encryptor)
Copyright © 2016. All rights reserved.