public class EncryptionComponent extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ENCRYPTED_PREFIX |
static String |
SYNDESIS_ENC_KEY |
Constructor and Description |
---|
EncryptionComponent(String encryptKey) |
EncryptionComponent(org.springframework.security.crypto.encrypt.TextEncryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
decrypt(Map<String,String> props) |
Properties |
decrypt(Properties props) |
String |
decrypt(String value) |
String |
encrypt(String value) |
void |
setEncryptKey(String encryptKey) |
static String |
stripPrefix(String value,
String prefix) |
public static final String SYNDESIS_ENC_KEY
public static final String ENCRYPTED_PREFIX
public EncryptionComponent(String encryptKey)
public EncryptionComponent(org.springframework.security.crypto.encrypt.TextEncryptor encryptor)
public String decrypt(String value) throws org.komodo.spi.KException
org.komodo.spi.KException
public Map<String,String> decrypt(Map<String,String> props) throws org.komodo.spi.KException
org.komodo.spi.KException
public Properties decrypt(Properties props) throws org.komodo.spi.KException
org.komodo.spi.KException
public void setEncryptKey(String encryptKey)
Copyright © 2013–2019. All rights reserved.