How to get the proxy authentication username and password used by WebStart?
Hello all!
I need to write my own small HTTP protocol and it should support basic proxy authentication. I mean, I don't use java.net.HttpURLConnection.
If my application is started via WebStart and if WebStart is configured to use HTTP proxy, I found a way to take the proxy host and port from the system properties list (since WebStart pushes them into the list). But I cannot find a way to read the username and password for which WebStart have already asked the user when it had detected that the proxy required authentication (which happens during the "is new version available" check).
I don't want to show "Password Authentication" dialog one more time in my application (if somebody is about to say "use Authenticator.requestPasswordAuthentication() ). I just would like to re-use what user has already typed when the WebStart asked.
Somebody can help?