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?).
In the source code of Sun's JDK implemenentation null is the default value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With