Class LoginLogoutUtil
java.lang.Object
org.wso2.carbon.integration.tests.common.utils.LoginLogoutUtil
A utility for logging into invalid input: '&' logging out of Carbon servers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanloginWithBasicAuth(String userName, char[] password, String backendServerURL) voidLog out from a Carbon server you logged in to by calling thelogin(java.lang.String, char[], java.lang.String)method
-
Constructor Details
-
LoginLogoutUtil
public LoginLogoutUtil()
-
-
Method Details
-
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
-
loginWithBasicAuth
-