jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
changeset 8815 9a3f042d307e
parent 7022 1066bfde0f5e
child 9035 1255eb81cc2f
--- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Mon Nov 01 11:32:50 2010 -0400
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java	Mon Jan 10 18:12:43 2011 +0000
@@ -2173,6 +2173,13 @@
                         if (tryTransparentNTLMServer) {
                             tryTransparentNTLMServer =
                                     NTLMAuthenticationProxy.proxy.supportsTransparentAuth;
+                            /* If the platform supports transparent authentication
+                             * then check if we are in a secure environment
+                             * whether, or not, we should try transparent authentication.*/
+                            if (tryTransparentNTLMServer) {
+                                tryTransparentNTLMServer =
+                                        NTLMAuthenticationProxy.proxy.isTrustedSite(url);
+                            }
                         }
                         a = null;
                         if (tryTransparentNTLMServer) {