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
| Constructor and Description |
|---|
EncryptablePropertySourceWrapper(org.springframework.core.env.PropertySource<T> delegate,
EncryptablePropertyResolver resolver,
EncryptablePropertyFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.env.PropertySource<T> |
getDelegate() |
Object |
getProperty(String name) |
void |
refresh() |
containsProperty, equals, getName, getSource, hashCode, named, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPropertypublic EncryptablePropertySourceWrapper(org.springframework.core.env.PropertySource<T> delegate, EncryptablePropertyResolver resolver, EncryptablePropertyFilter filter)
public void refresh()
refresh in interface EncryptablePropertySource<T>public Object getProperty(String name)
getProperty in interface EncryptablePropertySource<T>getProperty in class org.springframework.core.env.PropertySource<T>public org.springframework.core.env.PropertySource<T> getDelegate()
getDelegate in interface EncryptablePropertySource<T>Copyright © 2019. All rights reserved.