Class LoginLogoutUtil

java.lang.Object
org.wso2.carbon.integration.tests.common.utils.LoginLogoutUtil

public final class LoginLogoutUtil extends Object
A utility for logging into invalid input: '&' logging out of Carbon servers
  • 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:
      MalformedURLException
      RemoteException
      org.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 the login(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 out
      RemoteException - - If an error occurs while logging out
      org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException - - If an error occurs while logging out
    • loginWithBasicAuth

      public boolean loginWithBasicAuth(String userName, char[] password, String backendServerURL)