@Component public class CipherResourcePropertiesEncryptor extends Object implements ResourceEncryptor
ResourceEncryptor
implementation that can decrypt property values prefixed with {cipher} marker in a
Properties file.| Modifier and Type | Field and Description |
|---|---|
protected String |
CIPHER_MARKER |
| Constructor and Description |
|---|
CipherResourcePropertiesEncryptor(TextEncryptorLocator encryptor) |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(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) |
List<String> |
getSupportedExtensions() |
protected final String CIPHER_MARKER
public CipherResourcePropertiesEncryptor(TextEncryptorLocator encryptor)
public List<String> getSupportedExtensions()
getSupportedExtensions in interface ResourceEncryptorpublic String decrypt(String text, Environment environment) throws IOException
decrypt in interface ResourceEncryptorIOExceptionprotected String decryptWithJacksonParser(String text, String name, String[] profiles, com.fasterxml.jackson.core.JsonFactory factory) throws IOException
IOExceptionCopyright © 2022 Pivotal Software, Inc.. All rights reserved.