--- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Mon Oct 19 16:31:48 2009 -0700
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Wed Oct 21 15:41:42 2009 +0100
@@ -243,7 +243,7 @@
private boolean tryTransparentNTLMProxy = true;
/* Used by Windows specific code */
- Object authObj;
+ private Object authObj;
/* Set if the user is manually setting the Authorization or Proxy-Authorization headers */
boolean isUserServerAuth;
@@ -332,6 +332,15 @@
return logger;
}
+ /* Used for Windows NTLM implementation */
+ public Object authObj() {
+ return authObj;
+ }
+
+ public void authObj(Object authObj) {
+ this.authObj = authObj;
+ }
+
/*
* checks the validity of http message header and throws
* IllegalArgumentException if invalid.
@@ -2529,7 +2538,7 @@
// Set a property for authentication. This can safely disregard
// the connected test.
//
- void setAuthenticationProperty(String key, String value) {
+ public void setAuthenticationProperty(String key, String value) {
checkMessageHeader(key, value);
requests.set(key, value);
}