ar.com.jiji.kaya.auth
Class UserAuthenticatorDaoImpl

java.lang.Object
  extended by ar.com.jiji.kaya.auth.UserAuthenticatorDaoImpl
All Implemented Interfaces:
UserAuthenticator

public class UserAuthenticatorDaoImpl
extends java.lang.Object
implements UserAuthenticator

Realiza la autenticacion de usuarios usando un DAO.

Author:
lparra

Constructor Summary
UserAuthenticatorDaoImpl()
           
UserAuthenticatorDaoImpl(UserDao dao)
           
 
Method Summary
 User authenticate(java.lang.String username, java.lang.String password)
          Realiza la autentificacion de usuario y clave.
 void setUserDao(UserDao dao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAuthenticatorDaoImpl

public UserAuthenticatorDaoImpl()

UserAuthenticatorDaoImpl

public UserAuthenticatorDaoImpl(UserDao dao)
Method Detail

authenticate

public User authenticate(java.lang.String username,
                         java.lang.String password)
                  throws java.lang.IllegalArgumentException
Description copied from interface: UserAuthenticator
Realiza la autentificacion de usuario y clave.

Specified by:
authenticate in interface UserAuthenticator
Parameters:
username - El nombre del usuario. No puede ser null.
password - La clave. No puede ser null.
Returns:
El usuario o null si fallo la autenticacion.
Throws:
java.lang.IllegalArgumentException - Si el nombre de usuario o la clave son nulas.

setUserDao

public void setUserDao(UserDao dao)


Copyright © 2006 Kaya. All Rights Reserved.