Class AuthenticationClient
- java.lang.Object
-
- org.wso2.carbon.cloud.gateway.agent.client.AuthenticationClient
-
public class AuthenticationClient extends Object
-
-
Constructor Summary
Constructors Constructor Description AuthenticationClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.wso2.carbon.authenticator.stub.AuthenticationAdminStubgetLoggedAuthAdminStub(String serverUrl, String userName, String passWord, String hostName, String domainName)Get the authentication stub for a logged userStringgetSessionCookie(String serverUrl, String userName, String passWord, String hostName, String domainName)Returns the session cookie for subsequent invocations
-
-
-
Method Detail
-
getSessionCookie
public String getSessionCookie(String serverUrl, String userName, String passWord, String hostName, String domainName) throws RemoteException, SocketException, org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException
Returns the session cookie for subsequent invocations- Parameters:
serverUrl- the url of the server to authenticateuserName- usernamepassWord- passwordhostName- the host name of the remote serverdomainName- domain name of the tenant- Returns:
- the session cookie
- Throws:
org.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 error
-
getLoggedAuthAdminStub
public 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
Get the authentication stub for a logged user- Parameters:
serverUrl- the remote login server urluserName- user name of the serverpassWord- password of the serverhostName- host name of the remote login serverdomainName- tenant domain name- Returns:
- authentication stub of the logged user
- Throws:
org.wso2.carbon.cloud.gateway.common.CGException- throws in case of an error
-
-