src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
Print this page
@@ -241,11 +241,11 @@
/* try auth without calling Authenticator. Used for transparent NTLM authentication */
private boolean tryTransparentNTLMServer = true;
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;
boolean isUserProxyAuth;
@@ -330,10 +330,19 @@
/* Logging support */
public static PlatformLogger getHttpLogger() {
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.
*/
private void checkMessageHeader(String key, String value) {
@@ -2527,11 +2536,11 @@
//
// 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);
}
@Override