com.ibm.ccd.ui.util
Class SimpleAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by com.ibm.ccd.ui.util.SimpleAuthenticator

public class SimpleAuthenticator
extends java.net.Authenticator

This class is used for Authenticating server with a login/password.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
Constructor Summary
SimpleAuthenticator()
          Default Constructor
SimpleAuthenticator(java.lang.String username, java.lang.String password)
          Constructor with user name and password.
 
Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          This method consructs the PasswordAuthentication and returns the same.
 
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

SimpleAuthenticator

public SimpleAuthenticator()
Default Constructor


SimpleAuthenticator

public SimpleAuthenticator(java.lang.String username,
                           java.lang.String password)
Constructor with user name and password.

Parameters:
username -
password -
Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
This method consructs the PasswordAuthentication and returns the same.

Overrides:
getPasswordAuthentication in class java.net.Authenticator
Returns:
PasswordAuthentication