com.lyrisoft.chat.server.remote.auth.jdbc
Class JdbcAuthenticator

java.lang.Object
  |
  +--com.lyrisoft.chat.server.remote.auth.jdbc.JdbcAuthenticator
All Implemented Interfaces:
IAuthenticator

public class JdbcAuthenticator
extends java.lang.Object
implements IAuthenticator

Authenitcator that reads from server using JDBC

If a user if found in the password file, his password is checked. If a user is not found in the password file, the access level IAuthenticator.USER is returned.


Fields inherited from interface com.lyrisoft.chat.server.remote.IAuthenticator
GOD, MODERATOR, NONE, SERVER, USER
 
Constructor Summary
JdbcAuthenticator()
           
 
Method Summary
 Auth authenticate(java.lang.String userId, java.lang.String password)
          Check the authentication of a user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcAuthenticator

public JdbcAuthenticator()
Method Detail

authenticate

public Auth authenticate(java.lang.String userId,
                         java.lang.String password)
                  throws AccessDenied
Description copied from interface: IAuthenticator
Check the authentication of a user.
Specified by:
authenticate in interface IAuthenticator
Following copied from interface: com.lyrisoft.chat.server.remote.IAuthenticator
Parameters:
userId - the user id
password - the password
Returns:
an Auth object that represents the userId and access level.


Copyright © 2000-2002 Taso Lyristis