jdk/src/java.base/share/classes/sun/net/www/protocol/http/AuthenticationHeader.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 41579 c0fe2e6364d9
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
    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