com.foxsmart.ic.net
Class ProxyAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by com.foxsmart.ic.net.ProxyAuthenticator

public final class ProxyAuthenticator
extends java.net.Authenticator

The ProxyAuthenticator class extends an abstract authenticator by providing a username and password.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
Constructor Summary
ProxyAuthenticator(java.lang.String username, java.lang.String password)
          Construct a proxy authenticator with a username and password.
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          Gets the 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
 

Constructor Detail

ProxyAuthenticator

public ProxyAuthenticator(java.lang.String username,
                          java.lang.String password)
Construct a proxy authenticator with a username and password.

Parameters:
username - The username.
password - The password.
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Gets the password authentication. This will be called by the security framework to get the authentication information.

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


Copyright © 2005-2008 Fox Smart, Inc. All Rights Reserved.