com.limegroup.gnutella.security
Class ServerAuthenticator

java.lang.Object
  extended bycom.limegroup.gnutella.security.ServerAuthenticator
All Implemented Interfaces:
Authenticator

public class ServerAuthenticator
extends java.lang.Object
implements Authenticator

Authenticates a user for access to resources.


Constructor Summary
ServerAuthenticator()
          Constructs a new Authenticator
 
Method Summary
 java.util.Set authenticate(java.lang.String username, java.lang.String passwd, java.lang.String domain)
          Authenticates the username and password passed for the given domain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerAuthenticator

public ServerAuthenticator()
Constructs a new Authenticator

Method Detail

authenticate

public java.util.Set authenticate(java.lang.String username,
                                  java.lang.String passwd,
                                  java.lang.String domain)
Description copied from interface: Authenticator
Authenticates the username and password passed for the given domain

Specified by:
authenticate in interface Authenticator
Parameters:
username - the "user" to be authenticated.
domain - The domain for which to authenticate user
Returns:
the set (of Strings) of domains to which user is successfully authenticated. Returns null, if the authentication failed.