public class LoginLogoutClient extends Object
| Constructor and Description |
|---|
LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
login()
Provides login to carbon server
|
String |
login(String userName,
String password,
String hostName)
Login method using username, password and host name.
|
void |
logout()
Log out from carbon server
|
public LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context)
throws AutomationUtilException
AutomationUtilExceptionpublic String login() throws AutomationUtilException
AutomationUtilExceptionpublic String login(String userName, String password, String hostName) throws RemoteException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException, AutomationUtilException
userName - - usernamepassword - - passwordhostName - - url to loginorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException - - throws if login failsRemoteExceptionAutomationUtilExceptionpublic void logout()
throws org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException,
RemoteException
org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionExceptionRemoteExceptionCopyright © 2019 WSO2. All rights reserved.