Class EncryptableSystemEnvironmentPropertySourceWrapper
java.lang.Object
org.springframework.core.env.PropertySource<T>
- All Implemented Interfaces:
EncryptablePropertySource<Map<String,,Object>> org.springframework.boot.origin.OriginLookup<String>
public class EncryptableSystemEnvironmentPropertySourceWrapper
extends org.springframework.core.env.SystemEnvironmentPropertySource
implements EncryptablePropertySource<Map<String,Object>>
EncryptableSystemEnvironmentPropertySourceWrapper class.
- Version:
- $Id: $Id
- Author:
- Tomas Tulka (@ttulka), Uli
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.core.env.PropertySource
org.springframework.core.env.PropertySource.StubPropertySource -
Field Summary
Fields inherited from class org.springframework.core.env.PropertySource
logger, name, source -
Constructor Summary
ConstructorsConstructorDescriptionEncryptableSystemEnvironmentPropertySourceWrapper(org.springframework.core.env.SystemEnvironmentPropertySource delegate, EncryptablePropertyResolver resolver, EncryptablePropertyFilter filter) Constructor for EncryptableSystemEnvironmentPropertySourceWrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetDelegate.org.springframework.boot.origin.OrigingetProperty(String name) getProperty.voidsetWrapGetSource(boolean wrapGetSource) Set whether getSource() should wrap the source Map in an EncryptableMapWrapper.Methods inherited from class org.springframework.core.env.SystemEnvironmentPropertySource
containsProperty, resolvePropertyNameMethods inherited from class org.springframework.core.env.MapPropertySource
getPropertyNamesMethods inherited from class org.springframework.core.env.PropertySource
equals, getName, hashCode, named, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.ulisesbocchio.jasyptspringboot.EncryptablePropertySource
getPrefix, getProperty, isImmutable, refresh
-
Constructor Details
-
EncryptableSystemEnvironmentPropertySourceWrapper
public EncryptableSystemEnvironmentPropertySourceWrapper(org.springframework.core.env.SystemEnvironmentPropertySource delegate, EncryptablePropertyResolver resolver, EncryptablePropertyFilter filter) Constructor for EncryptableSystemEnvironmentPropertySourceWrapper.
- Parameters:
delegate- aSystemEnvironmentPropertySourceobjectresolver- aEncryptablePropertyResolverobjectfilter- aEncryptablePropertyFilterobject
-
-
Method Details
-
getProperty
getProperty.
- Specified by:
getPropertyin interfaceEncryptablePropertySource<Map<String,Object>> - Overrides:
getPropertyin classorg.springframework.core.env.SystemEnvironmentPropertySource- Parameters:
name- aStringobject- Returns:
- a
Objectobject
-
getDelegate
getDelegate.
- Specified by:
getDelegatein interfaceEncryptablePropertySource<Map<String,Object>> - Returns:
- a
PropertySourceobject
-
getOrigin
-
setWrapGetSource
public void setWrapGetSource(boolean wrapGetSource) Set whether getSource() should wrap the source Map in an EncryptableMapWrapper.
- Parameters:
wrapGetSource- true to wrap the source Map
-
getSource
-