public final class LoginLogoutUtil extends Object
| Constructor and Description |
|---|
LoginLogoutUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
login(String username,
char[] password,
String backendURL) |
boolean |
loginWithBasicAuth(String userName,
char[] password,
String backendServerURL) |
void |
logout(String backendURL)
Log out from a Carbon server you logged in to by calling the
login(java.lang.String, char[], java.lang.String) method |
public String login(String username, char[] password, String backendURL) throws MalformedURLException, RemoteException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
MalformedURLExceptionRemoteExceptionorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionExceptionpublic void logout(String backendURL) throws org.apache.commons.httpclient.auth.AuthenticationException, RemoteException, org.wso2.carbon.authenticator.stub.LogoutAuthenticationExceptionException
login(java.lang.String, char[], java.lang.String) methodbackendURL - - service URL of the carbon serverorg.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 outCopyright © 2018 WSO2. All rights reserved.