public class CipherTool extends Object
| Constructor and Description |
|---|
CipherTool() |
| Modifier and Type | Method and Description |
|---|---|
char[] |
decryptText(String cipherText)
Decrypt text.
|
void |
encryptSecrets()
Encrypt secrets.
|
char[] |
encryptText(String plainText)
Encrypt text.
|
void |
init(URLClassLoader urlClassLoader,
Path secureVaultConfigPath)
Initialise cipher tool.
|
public void init(URLClassLoader urlClassLoader, Path secureVaultConfigPath) throws org.wso2.carbon.secvault.exception.SecureVaultException
urlClassLoader - url class loaderorg.wso2.carbon.secvault.exception.SecureVaultException - error on initializing secure vault YAML configurationpublic void encryptSecrets()
throws org.wso2.carbon.secvault.exception.SecureVaultException
org.wso2.carbon.secvault.exception.SecureVaultException - error on persisting secretspublic char[] encryptText(String plainText) throws org.wso2.carbon.secvault.exception.SecureVaultException
plainText - text to encrypt (plain)org.wso2.carbon.secvault.exception.SecureVaultException - error on encrypting plain textpublic char[] decryptText(String cipherText) throws org.wso2.carbon.secvault.exception.SecureVaultException
cipherText - ciphered textorg.wso2.carbon.secvault.exception.SecureVaultException - error on decrypting textCopyright © 2017 WSO2. All rights reserved.