public class PasswordEncryptionUtil extends Object
| Constructor and Description |
|---|
PasswordEncryptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPasswordEncrypted(String carbonHome)
By checking the master-datasources.xml password node has encrypted attribute
|
static boolean |
runCipherToolScriptAndCheckStatus(String carbonHome,
String[] cmdArray)
By using run.sh running the ciphertool.sh and give the password as input
|
static boolean |
verifyInLogs(org.wso2.carbon.integration.common.admin.client.LogViewerClient logViewerClient)
Verifying the server startup and shutdown by reading the log
|
public static boolean isPasswordEncrypted(String carbonHome) throws Exception
Exception - - Error when getting and reading master-datasources.xmlpublic static boolean runCipherToolScriptAndCheckStatus(String carbonHome, String[] cmdArray) throws PasswordEncryptionIntegrationTestException
carbonHome - - carbon server installation locationcmdArray - - commands to be executed.IOException - - Error when reading the InputStream when running shell scriptPasswordEncryptionIntegrationTestExceptionpublic static boolean verifyInLogs(org.wso2.carbon.integration.common.admin.client.LogViewerClient logViewerClient)
throws PasswordEncryptionIntegrationTestException
logViewerClient - - logs that has to be readRemoteException - -org.wso2.carbon.logging.view.stub.LogViewerLogViewerExceptionPasswordEncryptionIntegrationTestExceptionCopyright © 2015 WSO2 Inc. All rights reserved.