Class LoginLogoutClient
- java.lang.Object
-
- org.wso2.am.integration.test.utils.user.mgt.LoginLogoutClient
-
public class LoginLogoutClient extends Object
A utility for logging into & logging out of Carbon servers
-
-
Constructor Summary
Constructors Constructor Description LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringlogin()Log in to a Carbon servervoidlogout()Log out from carbon server
-
-
-
Constructor Detail
-
LoginLogoutClient
public LoginLogoutClient(org.wso2.carbon.automation.engine.context.AutomationContext context) throws MalformedURLException, XPathExpressionException, org.apache.axis2.AxisFault- Throws:
MalformedURLExceptionXPathExpressionExceptionorg.apache.axis2.AxisFault
-
-
Method Detail
-
login
public String login() throws org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException, IOException, XMLStreamException, URISyntaxException, SAXException, XPathExpressionException
Log in to a Carbon server- Returns:
- The session cookie on successful login
- Throws:
org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionExceptionIOExceptionXMLStreamExceptionURISyntaxExceptionSAXExceptionXPathExpressionException
-
logout
public void logout() throws org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException, RemoteExceptionLog out from carbon server- Throws:
org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionExceptionRemoteException
-
-