Authenticator - reauthentication
I have an applet that's making HTTP requests to server by means of a HttpURLConnection object. I need to authenticate to the server, so I've subclassed Authenticator to do this, and made that class active by calling Authenticator.setDefault(). My class overrides getPasswordAuthentication, it pops up a dialog for the user to enter un and pw and returns the proper information in a PasswordAuthentication object.
When i make a request to server first time, getPasswordAuthentication method is called. It pops up the dialog. Suppose i hit cancel in this dialog and then need to make the connection to the server, the getPasswordAuthentication method is not getting called the 2nd time around.
Is this a bug? Has anyone else experienced this? Is there a solution or a work around?
thanks,
vani

