Class LoginLogoutUtil


  • public final class LoginLogoutUtil
    extends Object
    A utility for logging into & logging out of Carbon servers
    • Constructor Detail

      • LoginLogoutUtil

        public LoginLogoutUtil()
    • Method Detail

      • 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)