Examples of AuthenticationAdminStub


Examples of org.wso2.carbon.authenticator.stub.AuthenticationAdminStub

        String userName = authConfigBean.getUserName();
        String password = authConfigBean.getPassword();
        int serviceID = MySQLConnectionInitializer.getServiceID(StatusMonitorConstants.MANAGER);
        String authenticationServiceURL = StatusMonitorConstants.MANAGER_HTTPS +
                StatusMonitorAgentConstants.AUTHENTICATION_ADMIN_PATH;
        AuthenticationAdminStub authenticationAdminStub;
        try {
            authenticationAdminStub = new AuthenticationAdminStub(authenticationServiceURL);
            ServiceClient client = authenticationAdminStub._getServiceClient();
            Options options = client.getOptions();
            options.setManageSession(true);

            Boolean status;
            status = authenticationAdminStub.login(userName, password,
                    StatusMonitorConstants.MANAGER_HOST);
            ServiceContext serviceContext = authenticationAdminStub.
                    _getServiceClient().getLastOperationContext().getServiceContext();
            // String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);

            if (status) {
                MySQLConnector.insertStats(serviceID, true);
View Full Code Here

Examples of org.wso2.carbon.authenticator.stub.AuthenticationAdminStub

        }

        int serviceID = MySQLConnectionInitializer.getServiceID(StatusMonitorConstants.IDENTITY);
        String authenticationServiceURL = StatusMonitorConstants.IDENTITY_HTTPS +
                StatusMonitorAgentConstants.AUTHENTICATION_ADMIN_PATH;
        AuthenticationAdminStub authenticationAdminStub;
        try {
            authenticationAdminStub = new AuthenticationAdminStub(authenticationServiceURL);
            ServiceClient client = authenticationAdminStub._getServiceClient();
            Options options = client.getOptions();
            options.setManageSession(true);

            Boolean status;
            status = authenticationAdminStub.login(authConfigBean.getUserName(),
                    authConfigBean.getPassword(), StatusMonitorConstants.IDENTITY_HOST);
            ServiceContext serviceContext = authenticationAdminStub.
                    _getServiceClient().getLastOperationContext().getServiceContext();
            // String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);

            if (status) {
                MySQLConnector.insertStats(serviceID, true);
View Full Code Here

Examples of org.wso2.carbon.authenticator.stub.AuthenticationAdminStub

                                     ConfigurationContext configCtx,
                                     Locale locale) throws AxisFault {
        String serviceURL = backendServerURL + "AuthenticationAdmin";
        bundle = ResourceBundle.getBundle(BUNDLE, locale);
        this.backendServerURL = backendServerURL;
        stub = new AuthenticationAdminStub(configCtx, serviceURL);
    }
View Full Code Here

Examples of org.wso2.carbon.bam.services.stub.authenticationadmin_3_1_0.AuthenticationAdminStub

    private AuthenticationAdminStub stub;

    public AuthenticationAdminClient_3_2_0(String serverURL) throws AxisFault {
        String serviceURL;
        serviceURL = generateURL(new String[]{serverURL, SERVICES_SUFFIX, BAMConstants.AUTH_ADMIN_SERVICE_3_2_0});
        stub = new AuthenticationAdminStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL);
        stub._getServiceClient().getOptions().setManageSession(true);
    }
View Full Code Here

Examples of org.wso2.carbon.bam.services.stub.authenticationadmin_3_1_0.AuthenticationAdminStub

    private String sessionCookie;

    public AuthenticationAdminClient_3_1_0(String serverURL) throws AxisFault {

        String serviceURL = generateURL(new String[]{serverURL, SERVICES_SUFFIX, BAMConstants.AUTH_ADMIN_SERVICE_3_1_0});
        stub = new AuthenticationAdminStub(BAMUtil.getConfigurationContextService().getClientConfigContext(), serviceURL);
        stub._getServiceClient().getOptions().setManageSession(true);
    }
View Full Code Here

Examples of org.wso2.carbon.core.services.authentication.AuthenticationAdminStub

    }

    public boolean authenticate(String userName, String password, String remoteIp) throws Exception {
        String serviceURL = null;
        AuthenticationAdminStub authStub = null;
        boolean authenticate = false;

        serviceURL = backendServerURL + "AuthenticationAdmin";
        authStub = new AuthenticationAdminStub(configCtx, serviceURL);
        authStub._getServiceClient().getOptions().setManageSession(true);
        authenticate = authStub.login(userName, password, remoteIp);
        authCookie = (String) authStub._getServiceClient().getServiceContext().getProperty(
                HTTPConstants.COOKIE_STRING);
        return authenticate;
    }
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.