com.retek.rsm.domain.security.dao.impl
Class UserDaoImpl
java.lang.Object
|
+--com.retek.rsm.domain.security.dao.impl.UserDaoImpl
- All Implemented Interfaces:
- com.retek.platform.persistence.Dao, UserDao
- public class UserDaoImpl
- extends java.lang.Object
- implements UserDao
Field Summary |
protected org.apache.commons.logging.Log |
LOG
|
Method Summary |
void |
authenticate(java.lang.String userName,
java.lang.String password)
Validates the userName and password with the ldap server specified in the security.properties
file. |
java.util.Set |
findUsers(UserSearchCriteria criteria)
If the customer's ldap server only keeps a full name, the ldap.firstname.attrname should be
left blank in the properties file and the results of the ldap.lastname.attrname will be
returned as the user's full name. |
boolean |
isUserNameValid(java.lang.String userName)
|
com.retek.platform.util.type.security.User |
readUser(com.retek.platform.bo.IdentifiableReference reference)
|
com.retek.platform.util.type.security.User |
readUser(java.lang.String userName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected org.apache.commons.logging.Log LOG
UserDaoImpl
public UserDaoImpl()
isUserNameValid
public boolean isUserNameValid(java.lang.String userName)
- Specified by:
isUserNameValid
in interface UserDao
readUser
public com.retek.platform.util.type.security.User readUser(com.retek.platform.bo.IdentifiableReference reference)
- Specified by:
readUser
in interface UserDao
readUser
public com.retek.platform.util.type.security.User readUser(java.lang.String userName)
- Specified by:
readUser
in interface UserDao
findUsers
public java.util.Set findUsers(UserSearchCriteria criteria)
- If the customer's ldap server only keeps a full name, the ldap.firstname.attrname should be
left blank in the properties file and the results of the ldap.lastname.attrname will be
returned as the user's full name.
- Specified by:
findUsers
in interface UserDao
authenticate
public void authenticate(java.lang.String userName,
java.lang.String password)
throws javax.security.auth.login.FailedLoginException,
javax.security.auth.login.LoginException
- Validates the userName and password with the ldap server specified in the security.properties
file. This is a two step process where the distinguished name(DN) of the userName is located
in the ldap server and then the DN is used with the password to authenticate the user.
- Specified by:
authenticate
in interface UserDao
javax.security.auth.login.FailedLoginException
javax.security.auth.login.LoginException