< prev index next >

src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java

Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs

*** 23,35 **** * questions. */ package sun.net.www.protocol.http; - import sun.net.www.*; import java.util.Iterator; import java.util.HashMap; /** * This class is used to parse the information in WWW-Authenticate: and Proxy-Authenticate: * headers. It searches among multiple header lines and within each header line * for the best currently supported scheme. It can also return a HeaderParser --- 23,36 ---- * questions. */ package sun.net.www.protocol.http; import java.util.Iterator; import java.util.HashMap; + import sun.net.www.*; + import sun.security.action.GetPropertyAction; /** * This class is used to parse the information in WWW-Authenticate: and Proxy-Authenticate: * headers. It searches among multiple header lines and within each header line * for the best currently supported scheme. It can also return a HeaderParser
*** 91,102 **** public String toString() { return "AuthenticationHeader: prefer " + preferred_r; } static { ! authPref = java.security.AccessController.doPrivileged( ! new sun.security.action.GetPropertyAction("http.auth.preference")); // http.auth.preference can be set to SPNEGO or Kerberos. // In fact they means "Negotiate with SPNEGO" and "Negotiate with // Kerberos" separately, so here they are all translated into // Negotiate. Read NegotiateAuthentication.java to see how they --- 92,102 ---- public String toString() { return "AuthenticationHeader: prefer " + preferred_r; } static { ! authPref = GetPropertyAction.getProperty("http.auth.preference"); // http.auth.preference can be set to SPNEGO or Kerberos. // In fact they means "Negotiate with SPNEGO" and "Negotiate with // Kerberos" separately, so here they are all translated into // Negotiate. Read NegotiateAuthentication.java to see how they
< prev index next >