Package org.jdesktop.wonderland.common.login

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


                // don't redirect to the login page if there is a login failure
                huc.setRequestProperty("Redirect", "false");

                // secure the connection with the credentials for our session
                // (we can only do this for an http connection)
                CredentialManager cm = session.getSessionManager().getCredentialManager();
                cm.secureURLConnection(huc);

                if (huc.getResponseCode() != HttpURLConnection.HTTP_OK) {
                    logger.warning("Connection to " + url + " returns " +
                            huc.getResponseCode() + " : " +
                            huc.getResponseMessage());
View Full Code Here


        // add the default group principal
        out.add(new Principal(defaultGroup, Type.EVERYBODY));

        // get the credential manager to use
        CredentialManager cm = ServerAuthentication.getAuthenticationService();
        try {
            // request this user's groups
            Set<GroupDTO> groups =
                    GroupUtils.getGroupsForUser(BASE_URL, username, false, cm);
            for (GroupDTO g : groups) {
View Full Code Here

TOP

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

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.