@Component public class CipherResourceJsonEncryptor extends Object implements ResourceEncryptor
Modifier and Type | Field and Description |
---|---|
protected String |
CIPHER_MARKER |
Constructor and Description |
---|
CipherResourceJsonEncryptor(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 CipherResourceJsonEncryptor(TextEncryptorLocator encryptor)
public List<String> getSupportedExtensions()
getSupportedExtensions
in interface ResourceEncryptor
public String decrypt(String text, Environment environment) throws IOException
decrypt
in interface ResourceEncryptor
IOException
protected String decryptWithJacksonParser(String text, String name, String[] profiles, com.fasterxml.jackson.core.JsonFactory factory) throws IOException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.