prefuse.util.io
Class PasswordAuthenticator

java.lang.Object
  extended byjava.net.Authenticator
      extended byprefuse.util.io.PasswordAuthenticator

public class PasswordAuthenticator
extends java.net.Authenticator

A basic username/password authenticator for use with HTTP-Auth. The username or password can be reset for subsequent use as a different user or on a different website.

Author:
jeffrey heer

Method Summary
protected  java.net.PasswordAuthentication getPasswordAuthentication()
          Get the singleton PasswordAuthentication instance.
static void setAuthentication(java.lang.String username, java.lang.String password)
          Creates a new PasswordAuthenticator for the given name and password and sets it as the default Authenticator for use within Java networking.
 
Methods inherited from class java.net.Authenticator
getRequestingHost, getRequestingPort, getRequestingPrompt, getRequestingProtocol, getRequestingScheme, getRequestingSite, requestPasswordAuthentication, requestPasswordAuthentication, setDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPasswordAuthentication

protected java.net.PasswordAuthentication getPasswordAuthentication()
Get the singleton PasswordAuthentication instance.

Returns:
the PasswordAuthentication instance

setAuthentication

public static void setAuthentication(java.lang.String username,
                                     java.lang.String password)
Creates a new PasswordAuthenticator for the given name and password and sets it as the default Authenticator for use within Java networking.



Copyright ? 2007 Regents of the University of California