Package org.wso2.carbon.jira.reporting

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter.login()


                    request.setAttribute(CarbonConstants.REMEMBER_ME_COOKIE_VALUE, data.getValue());
                    request.setAttribute(CarbonConstants.REMEMBER_ME_COOKIE_AGE,
                            new Integer(data.getMaxAge()).toString());
                }
            } else {
                isLogged = proxy.login(userNameWithDomain, password, request.getRemoteAddr());
            }
            return isLogged;
        } catch (AxisFault axisFault) {
            throw axisFault;
        } catch (RemoteException e) {
View Full Code Here


            try {
                synchronized (stub) {
                    AuthenticationAdminClient client = new AuthenticationAdminClient(
                            UserMgtWSAPIDSComponent.getCcServiceInstance().getClientConfigContext(),
                            url, null, null, false);
                    boolean isLogin = client.login(userName, password, "127.0.0.1");
                    if (isLogin) {
                        return client.getAdminCookie();
                    } else {
                        log.error("Error login in tenant manager");
                        throw new UserStoreException("Error login in tenant manager");
View Full Code Here

            ConfigurationContext configContext = (ConfigurationContext) UserMgtWSAPIDSComponent
                    .getCcServiceInstance().getClientConfigContext();
            AuthenticationAdminClient client = new AuthenticationAdminClient(configContext,
                                                                             realmConfig.getRealmProperty(WSRemoteUserMgtConstants.SERVER_URL),
                                                                             sessionCookie, null, false);
            boolean isLogin = client.login(userName, password, "127.0.0.1"); // TODO
            if (isLogin) {
                sessionCookie = client.getAdminCookie();
            }
        } catch (Exception e) {
            throw new UserStoreException("Error" + e.getMessage(), e);
View Full Code Here

        try {
            AuthenticationAdminClient client =
                    new AuthenticationAdminClient(Util.getConfigurationContextService()
                            .getClientConfigContext(), serverUrl, null, null, false);
            // TODO : get the correct IP
            boolean isLogin = client.login(userName, password, "127.0.0.1");
            if (isLogin) {
                sessionCookie = client.getAdminCookie();
            }
        } catch (Exception e) {
            throw new Exception("Error in login to throttling manager. server: " + serverUrl +
View Full Code Here

        try {
            AuthenticationAdminClient client =
                    new AuthenticationAdminClient(DataHolder.getInstance().getClientConfigContext(),
                                                  serverUrl, null, null, false);
            //TODO : get the correct IP
            boolean isLogin = client.login(userName, password, "127.0.0.1");
            if (isLogin) {
                sessionCookie = client.getAdminCookie();
            }
        } catch (Exception e) {
            throw new UserStoreException("Error in login to the server server: " + serverUrl +
View Full Code Here

        try {
            AuthenticationAdminClient authenticationAdminClient_3_0_0 =
                    new AuthenticationAdminClient(BAMUtil.getConfigurationContextService().getClientConfigContext(),
                            server.getServerURL() + "/services/", null, null, false);

            isLoggedIn = authenticationAdminClient_3_0_0.login(server.getUserName(), server.getPassword(),
                    NetworkUtils.getLocalHostname());

            if (isLoggedIn) {
                getSessionCache().addSessionString(server.getServerURL(),authenticationAdminClient_3_0_0.getAdminCookie());
            }
View Full Code Here

        try {
            AuthenticationAdminClient client =
                    new AuthenticationAdminClient(ThrottlingAgentServiceComponent.getThrottlingAgent().getConfigurationContextService()
                            .getClientConfigContext(), serverUrl, null, null, false);
            // TODO : get the correct IP
            boolean isLogin = client.login(userName, password, "127.0.0.1");
            if (isLogin) {
                sessionCookie = client.getAdminCookie();
            }
        } catch (Exception e) {
            throw new Exception("Error in login to throttling manager. server: " + serverUrl +
View Full Code Here

        String sessionCookie = null;
        try {
            AuthenticationAdminClient client =
                    new AuthenticationAdminClient(confContext, serverUrl, null, null, false);
            //TODO : get the correct IP
            boolean isLogin = client.login(userName, password, "127.0.0.1");
            if (isLogin) {
                sessionCookie = client.getAdminCookie();
            }
        } catch (Exception e) {
            throw new UserStoreException("Error in login to the server server: " + serverUrl +
View Full Code Here

                            }
                        }
                    }
                }
            } else {
                isAutenticated = authClient.login(defaultCredentials.getUserName(),
                        defaultCredentials.getPassword(), "127.0.0.1");
                if (isAutenticated) {
                    return defaultCredentials.getUserName();
                }
            }
View Full Code Here

        AuthenticationAdminStub stub = new AuthenticationAdminStub(ctx, serviceEPR);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setManageSession(true);
        try {
            boolean result = stub.login(username, password, serviceEPR);
            if (result) {
                cookie = (String) stub._getServiceClient().getServiceContext().
                                getProperty(HTTPConstants.COOKIE_STRING);
            }
            return result;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.