prefuse.util.io
Class PasswordAuthenticator

java.lang.Object
  extended by java.net.Authenticator
      extended by prefuse.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

Nested Class Summary
 
Nested classes/interfaces inherited from class java.net.Authenticator
java.net.Authenticator.RequestorType
 
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, getRequestingURL, getRequestorType, requestPasswordAuthentication, 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.

Overrides:
getPasswordAuthentication in class java.net.Authenticator
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