Examples of secureURLConnection()


Examples of org.jdesktop.wonderland.common.login.AuthenticationService.secureURLConnection()

        // if there is an authentication manager for this server, attempt
        // to secure the request
        if (getAuthURL() != null) {
            AuthenticationService as = AuthenticationManager.get(getAuthURL());
            if (as != null) {
                as.secureURLConnection(conn);
            }
        }
       
        MultiPartFormOutputStream up =
                new MultiPartFormOutputStream(conn.getOutputStream(), boundary);
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.AuthenticationService.secureURLConnection()

        // if there is authentication, make sure to secure the connection
        try {
            AuthenticationService as = getAuthentication();
            if (as != null) {
                as.secureURLConnection(uc);
            }
        } catch (AuthenticationException ae) {
            throw new BuildException("Error requesting restart from " +
                                     restartUrl + ": " + ae.getMessage(), ae);
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.login.CredentialManager.secureURLConnection()

                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
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.