Class LoginLogoutUtil
- java.lang.Object
-
- org.wso2.carbon.integration.tests.common.utils.LoginLogoutUtil
-
public final class LoginLogoutUtil extends Object
A utility for logging into & logging out of Carbon servers
-
-
Constructor Summary
Constructors Constructor Description LoginLogoutUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringlogin(String username, char[] password, String backendURL)booleanloginWithBasicAuth(String userName, char[] password, String backendServerURL)voidlogout(String backendURL)Log out from a Carbon server you logged in to by calling thelogin(java.lang.String, char[], java.lang.String)method
-
-
-
Method Detail
-
login
public String login(String username, char[] password, String backendURL) throws MalformedURLException, RemoteException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
- Throws:
MalformedURLExceptionRemoteExceptionorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
-
logout
public void logout(String backendURL) throws org.apache.commons.httpclient.auth.AuthenticationException, RemoteException, org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException
Log out from a Carbon server you logged in to by calling thelogin(java.lang.String, char[], java.lang.String)method- Parameters:
backendURL- - service URL of the carbon server- Throws:
org.apache.commons.httpclient.auth.AuthenticationException- - If an error occurs while logging outRemoteException- - If an error occurs while logging outorg.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException- - If an error occurs while logging out
-
-