public class AuthenticationClient extends Object
| Constructor and Description |
|---|
AuthenticationClient() |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.authenticator.stub.AuthenticationAdminStub |
getLoggedAuthAdminStub(String serverUrl,
String userName,
String passWord,
String hostName,
String domainName)
Get the authentication stub for a logged user
|
String |
getSessionCookie(String serverUrl,
String userName,
String passWord,
String hostName,
String domainName)
Returns the session cookie for subsequent invocations
|
public String getSessionCookie(String serverUrl, String userName, String passWord, String hostName, String domainName) throws RemoteException, SocketException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
serverUrl - the url of the server to authenticateuserName - usernamepassWord - passwordhostName - the host name of the remote serverdomainName - domain name of the tenantorg.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException - throws in case of an auth errorRemoteException - throws in case of a connection errorSocketException - throws in case of a socket errorpublic org.wso2.carbon.authenticator.stub.AuthenticationAdminStub getLoggedAuthAdminStub(String serverUrl, String userName, String passWord, String hostName, String domainName) throws org.wso2.carbon.cloud.gateway.common.CGException
serverUrl - the remote login server urluserName - user name of the serverpassWord - password of the serverhostName - host name of the remote login serverdomainName - tenant domain nameorg.wso2.carbon.cloud.gateway.common.CGException - throws in case of an errorCopyright © 2019 WSO2. All rights reserved.