jdk/src/java.base/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
equal
deleted
inserted
replaced
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( |