public class StandardEncryptableServletEnvironment
extends org.springframework.web.context.support.StandardServletEnvironment
implements org.springframework.core.env.ConfigurableEnvironment
ConfigurableEnvironment that is useful for
early access of encrypted properties on bootstrap. While not required in most scenarios
could be useful when customizing Spring Boot's init behavior or integrating with certain capabilities that are
configured very early, such as Logging configuration. For a concrete example, this method of enabling encryptable
properties is the only one that works with Spring Properties replacement in logback-spring.xml files, using the
springProperty tagJNDI_PROPERTY_SOURCE_NAME, SERVLET_CONFIG_PROPERTY_SOURCE_NAME, SERVLET_CONTEXT_PROPERTY_SOURCE_NAME| Constructor and Description |
|---|
StandardEncryptableServletEnvironment() |
StandardEncryptableServletEnvironment(InterceptionMode interceptionMode,
List<Class<org.springframework.core.env.PropertySource<?>>> skipPropertySourceClasses,
EncryptablePropertyResolver resolver,
EncryptablePropertyFilter filter,
org.jasypt.encryption.StringEncryptor encryptor,
EncryptablePropertyDetector detector)
Create a new Encryptable Environment.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
customizePropertySources(org.springframework.core.env.MutablePropertySources propertySources) |
org.springframework.core.env.MutablePropertySources |
getPropertySources() |
initPropertySourcesacceptsProfiles, acceptsProfiles, addActiveProfile, containsProperty, doGetActiveProfiles, doGetDefaultProfiles, getActiveProfiles, getConversionService, getDefaultProfiles, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, getReservedDefaultProfiles, getSystemEnvironment, getSystemProperties, isProfileActive, merge, resolvePlaceholders, resolveRequiredPlaceholders, setActiveProfiles, setConversionService, setDefaultProfiles, setIgnoreUnresolvableNestedPlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setRequiredProperties, setValueSeparator, suppressGetenvAccess, toString, validateProfile, validateRequiredPropertiesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddActiveProfile, getSystemEnvironment, getSystemProperties, merge, setActiveProfiles, setDefaultProfilesacceptsProfiles, acceptsProfiles, getActiveProfiles, getDefaultProfilespublic StandardEncryptableServletEnvironment()
public StandardEncryptableServletEnvironment(InterceptionMode interceptionMode, List<Class<org.springframework.core.env.PropertySource<?>>> skipPropertySourceClasses, EncryptablePropertyResolver resolver, EncryptablePropertyFilter filter, org.jasypt.encryption.StringEncryptor encryptor, EncryptablePropertyDetector detector)
interceptionMode - The interception method to utilize, or null (Default is InterceptionMode.WRAPPER)skipPropertySourceClasses - A list of PropertySource classes to skip from interception, or null (Default is empty)resolver - The property resolver to utilize, or null (Default is DefaultLazyPropertyResolver which will resolve to specified configuration)filter - The property filter to utilize, or null (Default is DefaultLazyPropertyFilter which will resolve to specified configuration)encryptor - The string encryptor to utilize, or null (Default is DefaultLazyEncryptor which will resolve to specified configuration)detector - The property detector to utilize, or null (Default is DefaultLazyPropertyDetector which will resolve to specified configuration)protected void customizePropertySources(org.springframework.core.env.MutablePropertySources propertySources)
customizePropertySources in class org.springframework.web.context.support.StandardServletEnvironmentpublic org.springframework.core.env.MutablePropertySources getPropertySources()
getPropertySources in interface org.springframework.core.env.ConfigurableEnvironmentgetPropertySources in class org.springframework.core.env.AbstractEnvironmentCopyright © 2020. All rights reserved.