Class AuthenticationClient


  • public class AuthenticationClient
    extends Object
    • Constructor Detail

      • AuthenticationClient

        public AuthenticationClient()
    • 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 authenticate
        userName - username
        passWord - password
        hostName - the host name of the remote server
        domainName - domain name of the tenant
        Returns:
        the session cookie
        Throws:
        org.wso2.carbon.authenticator.stub.LoginAuthenticationExceptionException - throws in case of an auth error
        RemoteException - throws in case of a connection error
        SocketException - 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 url
        userName - user name of the server
        passWord - password of the server
        hostName - host name of the remote login server
        domainName - tenant domain name
        Returns:
        authentication stub of the logged user
        Throws:
        org.wso2.carbon.cloud.gateway.common.CGException - throws in case of an error