You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by te...@apache.org on 2006/02/06 22:52:59 UTC
svn commit: r375390 -
/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java
Author: tellison
Date: Mon Feb 6 13:52:57 2006
New Revision: 375390
URL: http://svn.apache.org/viewcvs?rev=375390&view=rev
Log:
Authenticator can be replaced in Java 1.4 onwards.
Modified:
incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java
Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java?rev=375390&r1=375389&r2=375390&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/net/Authenticator.java Mon Feb 6 13:52:57 2006
@@ -161,8 +161,8 @@
/**
* This method sets <code>a</code> to be the default authenticator. It
* will be called whenever the realm that the URL is pointing to requires
- * authorization. If there is already an authenticator installed before or
- * <code>a</code> is null, it will simply do nothing.
+ * authorization. If there is a security manager set then the caller must
+ * have the NetPermission "setDefaultAuthenticator".
*
* @param a
* java.net.Authenticator The authenticator to be set.
@@ -171,8 +171,7 @@
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPermission(setDefaultAuthenticatorPermission);
- if ((thisAuthenticator == null) && (a != null))
- thisAuthenticator = a;
+ thisAuthenticator = a;
}
/**