changeset 6331:6d814b2f9112

8005638: Less secure Authentication schemes should work when more secure schemes are not available Reviewed-by: alanb
author chegar
date Fri, 04 Jan 2013 11:34:17 +0000
parents 438d37d16417
children 92c3b24a8e9a
files src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java	Fri Jan 04 11:18:00 2013 +0000
+++ b/src/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java	Fri Jan 04 11:34:17 2013 +0000
@@ -206,7 +206,8 @@
 
             if(v == null) {
                 if ((v=schemes.get ("digest")) == null) {
-                    if (((v=schemes.get("ntlm"))==null)) {
+                    if (!NTLMAuthenticationProxy.supported
+                        || ((v=schemes.get("ntlm"))==null)) {
                         v = schemes.get ("basic");
                     }
                 }