com.alee.managers.proxy
Class WebProxyAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by com.alee.managers.proxy.WebProxyAuthenticator

public class WebProxyAuthenticator
extends java.net.Authenticator

This custom proxy authenticator provides an authentication dialog with proxy host, port, login and password fields. It will also remember entered proxy settings if user asks to.

Author:
Mikle Garin

Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
Field Summary
static javax.swing.ImageIcon AUTH_ICON
          Authentication dialog icon.
 
Constructor Summary
WebProxyAuthenticator()
           
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          Returns custom password authentication.
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, getRequestingURL, getRequestorType, requestPasswordAuthentication, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_ICON

public static final javax.swing.ImageIcon AUTH_ICON
Authentication dialog icon.

Constructor Detail

WebProxyAuthenticator

public WebProxyAuthenticator()
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Returns custom password authentication.

Overrides:
getPasswordAuthentication in class java.net.Authenticator
Returns:
custom password authentication