org.apache.avalon.repository.impl
Class DefaultAuthenticator

java.lang.Object
  extended byjava.net.Authenticator
      extended byorg.apache.avalon.repository.impl.DefaultAuthenticator

public final class DefaultAuthenticator
extends Authenticator

Default authenticator that provides support for username password based authentication in conjunction with the repository proxy settings.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/12/04 19:34:30 $
Author:
Avalon Development Team

Constructor Summary
DefaultAuthenticator(String username, String password)
          Creation of a new simple authenticator.
 
Method Summary
protected  PasswordAuthentication getPasswordAuthentication()
          Returns the password authenticator.
 
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
 

Constructor Detail

DefaultAuthenticator

public DefaultAuthenticator(String username,
                            String password)
                     throws NullPointerException
Creation of a new simple authenticator.

Parameters:
username - the username
password - a passsword
Throws:
NullPointerException - if the supplied username or password is null
Method Detail

getPasswordAuthentication

protected PasswordAuthentication getPasswordAuthentication()
Returns the password authenticator.

Returns:
the password authenticator


Copyright © Apache Software Foundation. All Rights Reserved.