net.sf.pmr.core.service
Class SecurityServiceImpl

java.lang.Object
  extended by net.sf.pmr.core.service.SecurityServiceImpl
All Implemented Interfaces:
SecurityService

public final class SecurityServiceImpl
extends java.lang.Object
implements SecurityService

Author:
Arnaud To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
SecurityServiceImpl(UserRepository userRepository)
           
 
Method Summary
 User login(java.lang.String login, java.lang.String password)
          return the user corresponding to he login and password or null if any If a user is found, the password is remove from the instance variable Login and password aren't case sensitive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityServiceImpl

public SecurityServiceImpl(UserRepository userRepository)
Parameters:
userRepository - userRepository
Method Detail

login

public User login(java.lang.String login,
                  java.lang.String password)
return the user corresponding to he login and password or null if any If a user is found, the password is remove from the instance variable Login and password aren't case sensitive

Specified by:
login in interface SecurityService
Parameters:
login - login
password - password
Returns:
User or null


Copyright © 2005 Arnaud Prost. All Rights Reserved.