Class AbstractEnvironmentDecrypt
java.lang.Object
org.springframework.cloud.bootstrap.encrypt.AbstractEnvironmentDecrypt
- Direct Known Subclasses:
DecryptEnvironmentPostProcessor, EnvironmentDecryptApplicationInitializer
Abstract class that handles decrypting and merging of PropertySources.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringdecrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor, String key, String original) protected voiddecrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor, Map<String, Object> properties) decrypt(org.springframework.security.crypto.encrypt.TextEncryptor encryptor, org.springframework.core.env.PropertySources propertySources) booleanprotected voidmerge(org.springframework.core.env.PropertySources propertySources) voidsetFailOnError(boolean failOnError) Strategy to determine how to handle exceptions during decryption.
-
Field Details
-
DECRYPTED_PROPERTY_SOURCE_NAME
Name of the decrypted property source.- See Also:
-
ENCRYPTED_PROPERTY_PREFIX
Prefix indicating an encrypted value.- See Also:
-
logger
protected org.apache.commons.logging.Log logger
-
-
Constructor Details
-
AbstractEnvironmentDecrypt
public AbstractEnvironmentDecrypt()
-
-
Method Details
-
setFailOnError
public void setFailOnError(boolean failOnError) Strategy to determine how to handle exceptions during decryption.- Parameters:
failOnError- the flag value (default true)
-
isFailOnError
public boolean isFailOnError() -
decrypt
-
merge
-
merge
-
decrypt
-
decrypt
-