equal
deleted
inserted
replaced
241 /* try auth without calling Authenticator. Used for transparent NTLM authentication */ |
241 /* try auth without calling Authenticator. Used for transparent NTLM authentication */ |
242 private boolean tryTransparentNTLMServer = true; |
242 private boolean tryTransparentNTLMServer = true; |
243 private boolean tryTransparentNTLMProxy = true; |
243 private boolean tryTransparentNTLMProxy = true; |
244 |
244 |
245 /* Used by Windows specific code */ |
245 /* Used by Windows specific code */ |
246 Object authObj; |
246 private Object authObj; |
247 |
247 |
248 /* Set if the user is manually setting the Authorization or Proxy-Authorization headers */ |
248 /* Set if the user is manually setting the Authorization or Proxy-Authorization headers */ |
249 boolean isUserServerAuth; |
249 boolean isUserServerAuth; |
250 boolean isUserProxyAuth; |
250 boolean isUserProxyAuth; |
251 |
251 |
328 } |
328 } |
329 |
329 |
330 /* Logging support */ |
330 /* Logging support */ |
331 public static PlatformLogger getHttpLogger() { |
331 public static PlatformLogger getHttpLogger() { |
332 return logger; |
332 return logger; |
|
333 } |
|
334 |
|
335 /* Used for Windows NTLM implementation */ |
|
336 public Object authObj() { |
|
337 return authObj; |
|
338 } |
|
339 |
|
340 public void authObj(Object authObj) { |
|
341 this.authObj = authObj; |
333 } |
342 } |
334 |
343 |
335 /* |
344 /* |
336 * checks the validity of http message header and throws |
345 * checks the validity of http message header and throws |
337 * IllegalArgumentException if invalid. |
346 * IllegalArgumentException if invalid. |
2527 |
2536 |
2528 // |
2537 // |
2529 // Set a property for authentication. This can safely disregard |
2538 // Set a property for authentication. This can safely disregard |
2530 // the connected test. |
2539 // the connected test. |
2531 // |
2540 // |
2532 void setAuthenticationProperty(String key, String value) { |
2541 public void setAuthenticationProperty(String key, String value) { |
2533 checkMessageHeader(key, value); |
2542 checkMessageHeader(key, value); |
2534 requests.set(key, value); |
2543 requests.set(key, value); |
2535 } |
2544 } |
2536 |
2545 |
2537 @Override |
2546 @Override |