jdk/src/java.base/unix/classes/sun/net/www/protocol/http/ntlm/NTLMAuthentication.java
equal
deleted
inserted
replaced
74 NTLMAuthenticationCallback.getNTLMAuthenticationCallback(); |
74 NTLMAuthenticationCallback.getNTLMAuthenticationCallback(); |
75 |
75 |
76 private String hostname; |
76 private String hostname; |
77 /* Domain to use if not specified by user */ |
77 /* Domain to use if not specified by user */ |
78 private static String defaultDomain = |
78 private static String defaultDomain = |
79 GetPropertyAction.getProperty("http.auth.ntlm.domain", ""); |
79 GetPropertyAction.privilegedGetProperty("http.auth.ntlm.domain", ""); |
80 |
80 |
81 public static boolean supportsTransparentAuth () { |
81 public static boolean supportsTransparentAuth () { |
82 return false; |
82 return false; |
83 } |
83 } |
84 |
84 |
139 username = s.substring (i+1); |
139 username = s.substring (i+1); |
140 } |
140 } |
141 password = pw.getPassword(); |
141 password = pw.getPassword(); |
142 init0(); |
142 init0(); |
143 try { |
143 try { |
144 String version = GetPropertyAction.getProperty("ntlm.version"); |
144 String version = GetPropertyAction.privilegedGetProperty("ntlm.version"); |
145 client = new Client(version, hostname, username, ntdomain, password); |
145 client = new Client(version, hostname, username, ntdomain, password); |
146 } catch (NTLMException ne) { |
146 } catch (NTLMException ne) { |
147 try { |
147 try { |
148 client = new Client(null, hostname, username, ntdomain, password); |
148 client = new Client(null, hostname, username, ntdomain, password); |
149 } catch (NTLMException ne2) { |
149 } catch (NTLMException ne2) { |