org.apache.avalon.repository.main
Class DefaultAuthenticator
java.lang.Object
java.net.Authenticator
org.apache.avalon.repository.main.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.2 $ $Date: 2004/02/19 07:37:47 $
- Author:
- Avalon Development Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAuthenticator
public DefaultAuthenticator(String username,
String password)
throws NullPointerException
- Creation of a new simple authenticator.
- Parameters:
username
- the usernamepassword
- a passsword
- Throws:
NullPointerException
- if the supplied username or password is null
getPasswordAuthentication
protected PasswordAuthentication getPasswordAuthentication()
- Returns the password authenticator.
- Returns:
- the password authenticator
Copyright © The Apache Software Foundation. All Rights Reserved.