jdk/src/java.base/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
changeset 37593 824750ada3d6
parent 31061 fead7d86d75f
child 37781 71ed5645f17c
equal deleted inserted replaced
37592:c80f098887f4 37593:824750ada3d6
    32 import java.net.URL;
    32 import java.net.URL;
    33 import sun.net.www.HeaderParser;
    33 import sun.net.www.HeaderParser;
    34 import sun.net.www.protocol.http.AuthenticationInfo;
    34 import sun.net.www.protocol.http.AuthenticationInfo;
    35 import sun.net.www.protocol.http.AuthScheme;
    35 import sun.net.www.protocol.http.AuthScheme;
    36 import sun.net.www.protocol.http.HttpURLConnection;
    36 import sun.net.www.protocol.http.HttpURLConnection;
       
    37 import sun.security.action.GetPropertyAction;
    37 
    38 
    38 /**
    39 /**
    39  * NTLMAuthentication:
    40  * NTLMAuthentication:
    40  *
    41  *
    41  * @author Michael McMahon
    42  * @author Michael McMahon
    50 
    51 
    51     private String hostname;
    52     private String hostname;
    52     private static String defaultDomain; /* Domain to use if not specified by user */
    53     private static String defaultDomain; /* Domain to use if not specified by user */
    53 
    54 
    54     static {
    55     static {
    55         defaultDomain = java.security.AccessController.doPrivileged(
    56         defaultDomain = GetPropertyAction.getProperty("http.auth.ntlm.domain",
    56             new sun.security.action.GetPropertyAction("http.auth.ntlm.domain",
    57                                                       "domain");
    57                                                       "domain"));
       
    58     };
    58     };
    59 
    59 
    60     private void init0() {
    60     private void init0() {
    61 
    61 
    62         hostname = java.security.AccessController.doPrivileged(
    62         hostname = java.security.AccessController.doPrivileged(