< prev index next >
src/java.base/windows/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
Print this page
rev 14210 : 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs
*** 32,41 ****
--- 32,42 ----
import java.net.URL;
import sun.net.www.HeaderParser;
import sun.net.www.protocol.http.AuthenticationInfo;
import sun.net.www.protocol.http.AuthScheme;
import sun.net.www.protocol.http.HttpURLConnection;
+ import sun.security.action.GetPropertyAction;
/**
* NTLMAuthentication:
*
* @author Michael McMahon
*** 50,62 ****
private String hostname;
private static String defaultDomain; /* Domain to use if not specified by user */
static {
! defaultDomain = java.security.AccessController.doPrivileged(
! new sun.security.action.GetPropertyAction("http.auth.ntlm.domain",
! "domain"));
};
private void init0() {
hostname = java.security.AccessController.doPrivileged(
--- 51,62 ----
private String hostname;
private static String defaultDomain; /* Domain to use if not specified by user */
static {
! defaultDomain = GetPropertyAction.getProperty("http.auth.ntlm.domain",
! "domain");
};
private void init0() {
hostname = java.security.AccessController.doPrivileged(
< prev index next >