net.sf.mindoro.domain
Class SecurityFacade

java.lang.Object
  extended bynet.sf.mindoro.domain.SecurityFacade

public class SecurityFacade
extends java.lang.Object

The SecurityFacade provides a simplified and unified interface to the underlying Users/Roles/Permissions model.

Author:
aisrael

Constructor Summary
SecurityFacade(UserDao userDao)
           
 
Method Summary
 SystemUser authenticate(SystemUser user)
          Attempt to authenticate the given SystemUser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityFacade

public SecurityFacade(UserDao userDao)
Parameters:
userDao - UserDao
Method Detail

authenticate

public final SystemUser authenticate(SystemUser user)
Attempt to authenticate the given SystemUser.

Parameters:
user - SystemUser
Returns:
a SystemUser object from the database if the given user's credentials are ok, null otherwise


Copyright © 2005 Project Mindoro. All Rights Reserved.