jdk/src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java
equal
deleted
inserted
replaced
92 public String toString() { |
92 public String toString() { |
93 return "AuthenticationHeader: prefer " + preferred_r; |
93 return "AuthenticationHeader: prefer " + preferred_r; |
94 } |
94 } |
95 |
95 |
96 static { |
96 static { |
97 authPref = GetPropertyAction.getProperty("http.auth.preference"); |
97 authPref = GetPropertyAction.privilegedGetProperty("http.auth.preference"); |
98 |
98 |
99 // http.auth.preference can be set to SPNEGO or Kerberos. |
99 // http.auth.preference can be set to SPNEGO or Kerberos. |
100 // In fact they means "Negotiate with SPNEGO" and "Negotiate with |
100 // In fact they means "Negotiate with SPNEGO" and "Negotiate with |
101 // Kerberos" separately, so here they are all translated into |
101 // Kerberos" separately, so here they are all translated into |
102 // Negotiate. Read NegotiateAuthentication.java to see how they |
102 // Negotiate. Read NegotiateAuthentication.java to see how they |