com.lyrisoft.chat.server.remote
Interface IAuthenticator

All Known Implementing Classes:
MysqlAuthenticator, NullAuthenticator, PasswdAuthenticator, JdbcAuthenticator

public interface IAuthenticator

Interface for objects that will handle authentication. The server will delegate signOn calls to us.


Field Summary
static int GOD
           
static int MODERATOR
           
static int NONE
           
static int SERVER
           
static int USER
           
 
Method Summary
 Auth authenticate(java.lang.String userId, java.lang.String password)
          Check the authentication of a user.
 

Field Detail

NONE

public static final int NONE

USER

public static final int USER

MODERATOR

public static final int MODERATOR

GOD

public static final int GOD

SERVER

public static final int SERVER
Method Detail

authenticate

public Auth authenticate(java.lang.String userId,
                         java.lang.String password)
                  throws AccessDenied
Check the authentication of a user.
Parameters:
userId - the user id
password - the password
Returns:
an Auth object that represents the userId and access level.


Copyright © 2000-2002 Taso Lyristis