Package org.jdesktop.wonderland.common.login

Examples of org.jdesktop.wonderland.common.login.AuthenticationInfo


        if (!authUrl.endsWith("/")) {
            authUrl += "/";
        }
        authUrl += NOAUTH_SERVICE_PATH;

        AuthenticationInfo info = new AuthenticationInfo(
                AuthenticationInfo.Type.NONE, authUrl);
        return AuthenticationManager.login(info, username, "Darkstar server");
    }
View Full Code Here


        } catch (IOException ioe) {
            throw new AuthenticationException("Error reading password file " +
                                              passwordFile, ioe);
        }

        AuthenticationInfo info = new AuthenticationInfo(
                AuthenticationInfo.Type.WEB_SERVICE, authUrl);
        return AuthenticationManager.login(info, username, password);
    }
View Full Code Here

            ui.requestLogin(this);
        }

        public NoAuthLoginControl getNoAuthLogin() {
            // create a web service object to log in with
            AuthenticationInfo info = super.getAuthInfo().clone();
            info.setType(AuthenticationInfo.Type.NONE);
            NoAuthLoginControl control = new NoAuthLoginControl(info);
            control.setStarted();
            setWrapped(control);
            return control;
        }
View Full Code Here

            return control;
        }

        public UserPasswordLoginControl getUserPasswordLogin() {
            // create a web service object to log in with
            AuthenticationInfo info = super.getAuthInfo().clone();
            info.setType(AuthenticationInfo.Type.WEB_SERVICE);
            UserPasswordLoginControl control = new UserPasswordLoginControl(info);
            control.setStarted();
            setWrapped(control);
            return control;
        }
View Full Code Here

        synchronized (connectLock) {
            // check the server details to see if the timestamp has changed
            checkTimeStamp(getDetails());

            // determine what type of authentication to use
            AuthenticationInfo authInfo = getDetails().getAuthInfo();

            synchronized (this) {
                // create the login control if necessary
                if (loginControl == null) {
                    loginControl = createLoginControl(authInfo);
View Full Code Here

        // get the URL for the web server
        String serverUrl = System.getProperty(Constants.WEBSERVER_URL_PROP);
        serverUrl += SECURITY_PATH;
       
        // set the login type and URL
        AuthenticationInfo authInfo = new AuthenticationInfo(
                                       AuthenticationInfo.Type.NONE, serverUrl);
        ServerInfo.getServerDetails().setAuthInfo(authInfo);

        // get the internal URL for the web server
        serverUrl = System.getProperty(Constants.WEBSERVER_URL_INTERNAL_PROP);
        serverUrl += SECURITY_PATH;
        authInfo = new AuthenticationInfo(AuthenticationInfo.Type.NONE, serverUrl);
        ServerInfo.getInternalServerDetails().setAuthInfo(authInfo);
    }
View Full Code Here

                password != null && password.length() > 0)
        {
            ServerSessionManager ssm = LoginManager.getSessionManager(serverUrl.toString());
            ServerDetails details = ssm.getDetails();

            AuthenticationInfo info = details.getAuthInfo().clone();

            // if the type is EITHER, we choose to login with authentication,
            // since guest logins won't be allowed without authentication
            if (info.getType() == AuthenticationInfo.Type.EITHER) {
                info.setType(AuthenticationInfo.Type.WEB_SERVICE);
            }

            if (info.getType() == AuthenticationInfo.Type.WEB_SERVICE) {
                out = AuthenticationManager.login(info, username, password);
            }
        }

        return out;
View Full Code Here

                password != null && password.length() > 0)
        {
            ServerSessionManager ssm = LoginManager.getSessionManager(serverUrl.toString());
            ServerDetails details = ssm.getDetails();

            AuthenticationInfo info = details.getAuthInfo().clone();

            // if the type is EITHER, we choose to login with authentication,
            // since guest logins won't be allowed without authentication
            if (info.getType() == AuthenticationInfo.Type.EITHER) {
                info.setType(AuthenticationInfo.Type.WEB_SERVICE);
            }

            if (info.getType() == AuthenticationInfo.Type.WEB_SERVICE) {
                out = AuthenticationManager.login(info, username, password);
            }
        }

        return out;
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.login.AuthenticationInfo

Copyright © 2018 www.massapicom. 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.