Class CipherResourceYamlEncryptor
java.lang.Object
org.springframework.cloud.config.server.encryption.CipherResourceYamlEncryptor
- All Implemented Interfaces:
ResourceEncryptor
ResourceEncryptor
implementation that can decrypt property values prefixed with {cipher} marker in a YAML
file.- Author:
- Sean Stiglitz
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecrypt
(String text, Environment environment) protected String
decryptValue
(String value, String name, String[] profiles) protected String
decryptWithJacksonParser
(String text, String name, String[] profiles, com.fasterxml.jackson.core.JsonFactory factory)
-
Field Details
-
CIPHER_MARKER
- See Also:
-
-
Constructor Details
-
CipherResourceYamlEncryptor
-
-
Method Details
-
getSupportedExtensions
- Specified by:
getSupportedExtensions
in interfaceResourceEncryptor
-
decrypt
- Specified by:
decrypt
in interfaceResourceEncryptor
- Throws:
IOException
-
decryptWithJacksonParser
protected String decryptWithJacksonParser(String text, String name, String[] profiles, com.fasterxml.jackson.core.JsonFactory factory) throws IOException - Throws:
IOException
-
decryptValue
-