org.apache.lokahi.core.common.authentication
Class DatabaseAuthentication

java.lang.Object
  extended by org.apache.lokahi.core.common.authentication.DatabaseAuthentication
All Implemented Interfaces:
Authentication, Dao

public class DatabaseAuthentication
extends java.lang.Object
implements Authentication, Dao

Version:
$Id: DatabaseAuthentication.java,v 1.1 2006/03/07 20:18:50 drtobes Exp $
Author:
Stephen Toback

Constructor Summary
DatabaseAuthentication()
           
DatabaseAuthentication(java.lang.String userName, java.lang.String password)
           
 
Method Summary
 boolean authenticate(java.lang.String userID, java.lang.String passWord)
           
 DatabaseAuthentication fillObject(java.sql.ResultSet r)
          Creates the Dao from the passed resultset, internally calling the appriate constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseAuthentication

public DatabaseAuthentication()

DatabaseAuthentication

public DatabaseAuthentication(java.lang.String userName,
                              java.lang.String password)
Method Detail

authenticate

public boolean authenticate(java.lang.String userID,
                            java.lang.String passWord)
                     throws AuthenticationException
Specified by:
authenticate in interface Authentication
Throws:
AuthenticationException

fillObject

public DatabaseAuthentication fillObject(java.sql.ResultSet r)
                                  throws java.sql.SQLException
Description copied from interface: Dao
Creates the Dao from the passed resultset, internally calling the appriate constructor.

Specified by:
fillObject in interface Dao
Parameters:
r - the resultset from a database call, should include the entire object
Returns:
Object populated from the resultset
Throws:
java.sql.SQLException