public class EnvironmentDecryptApplicationInitializer extends Object implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
| Modifier and Type | Field and Description |
|---|---|
static String |
DECRYPTED_BOOTSTRAP_PROPERTY_SOURCE_NAME
Name of the decrypted bootstrap property source.
|
static String |
DECRYPTED_PROPERTY_SOURCE_NAME
Name of the decrypted property source.
|
static String |
ENCRYPTED_PROPERTY_PREFIX
Prefix indicating an encrypted value.
|
| Constructor and Description |
|---|
EnvironmentDecryptApplicationInitializer(org.springframework.security.crypto.encrypt.TextEncryptor encryptor) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
decrypt(org.springframework.core.env.PropertySources propertySources) |
int |
getOrder() |
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |
void |
setFailOnError(boolean failOnError)
Strategy to determine how to handle exceptions during decryption.
|
void |
setOrder(int order) |
public static final String DECRYPTED_PROPERTY_SOURCE_NAME
public static final String DECRYPTED_BOOTSTRAP_PROPERTY_SOURCE_NAME
public static final String ENCRYPTED_PROPERTY_PREFIX
public EnvironmentDecryptApplicationInitializer(org.springframework.security.crypto.encrypt.TextEncryptor encryptor)
public void setFailOnError(boolean failOnError)
failOnError - the flag value (default true)public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>Copyright © 2020 Pivotal Software, Inc.. All rights reserved.