I’m using the Autheticator class to access a password-protected URL. I’ve extended it and created my own authenticator, and I set it as the default authenticator using Authenticator#setDefault(java.net.Authenticator). Once I’m done accessing the URL, I’d like to reset the authenticator. The Javadoc says that setting it to null removes any previously set authenticator. But I’m not sure if that means that it has been reset to use the default authenticator (is there such a thing?).
I’m using the Autheticator class to access a password-protected URL. I’ve extended it and
Share
In the source code of Sun’s JDK implemenentation null is the default value.