public class AbstractEnvironmentDecrypt extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DECRYPTED_PROPERTY_SOURCE_NAME
Name of the decrypted property source.
|
static String |
ENCRYPTED_PROPERTY_PREFIX
Prefix indicating an encrypted value.
|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
AbstractEnvironmentDecrypt() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
Map<String,Object> properties) |
protected Map<String,Object> |
decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
org.springframework.core.env.PropertySources propertySources) |
protected String |
decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
String key,
String original) |
boolean |
isFailOnError() |
protected void |
merge(org.springframework.core.env.PropertySource<?> source,
Map<String,Object> properties) |
protected Map<String,Object> |
merge(org.springframework.core.env.PropertySources propertySources) |
void |
setFailOnError(boolean failOnError)
Strategy to determine how to handle exceptions during decryption.
|
public static final String DECRYPTED_PROPERTY_SOURCE_NAME
public static final String ENCRYPTED_PROPERTY_PREFIX
protected org.apache.commons.logging.Log logger
public void setFailOnError(boolean failOnError)
failOnError - the flag value (default true)public boolean isFailOnError()
protected Map<String,Object> decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor, org.springframework.core.env.PropertySources propertySources)
protected Map<String,Object> merge(org.springframework.core.env.PropertySources propertySources)
protected void merge(org.springframework.core.env.PropertySource<?> source,
Map<String,Object> properties)
protected void decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor,
Map<String,Object> properties)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.