Examples of AuthenticationAdminClient_3_2_0


Examples of org.wso2.carbon.bam.core.clients.AuthenticationAdminClient_3_2_0

            }
            try {
                new Socket(url.getHost(), port); //this is just to check if the server is up
                boolean authenticated;
                try {
                    AuthenticationAdminClient_3_2_0 authenticationAdminClient = new AuthenticationAdminClient_3_2_0(monitoredServer.getServerURL());
                    authenticated = authenticationAdminClient.authenticate(monitoredServer.getUserName(), monitoredServer.getPassword());
                } catch (Exception e) {
                    if (e.getMessage().indexOf("404") > 0) {
                        return BAMConstants.SERVER_AUTH_FAILED_404;
                    } else {
                        //this is for backward compatibility with the old stubs
View Full Code Here

Examples of org.wso2.carbon.bam.core.clients.AuthenticationAdminClient_3_2_0

    private boolean authenticateWithServer_Carbon_CurrentVersion(ServerDO server) {
        boolean isLoggedIn = false;

        try {
            AuthenticationAdminClient_3_2_0 authenticationAdminClient = new AuthenticationAdminClient_3_2_0(server.getServerURL());

            isLoggedIn = authenticationAdminClient.authenticate(server.getUserName(), server.getPassword());

            if (isLoggedIn) {
                String sessionCookie = authenticationAdminClient.getSessionCookie();
                getSessionCache().addSessionString(server.getServerURL(), sessionCookie);
            }
        } catch (Throwable ignore) {
            if (log.isDebugEnabled()) {
                log.debug("Authentication failed with server: " + server.toString(), ignore);
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.