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.
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 |
JdbcAuthenticator
public JdbcAuthenticator()
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 idpassword
- the password- Returns:
- an Auth object that represents the userId and access level.
Copyright © 2000-2002 Taso Lyristis