public class UserDetailsServiceImpl extends Object implements org.springframework.security.core.userdetails.UserDetailsService
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
UserDao |
userDao |
| Constructor and Description |
|---|
UserDetailsServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Collection<org.springframework.security.core.GrantedAuthority> |
getAuthorities(int access)
Retrieves the correct ROLE type depending on the access level, where access level is an int.
|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String userName)
Retrieves a user record containing the user's credentials and access.
|
void |
setUserDao(UserDao userDao)
Sets the data access object.
|
protected static org.apache.log4j.Logger logger
public UserDao userDao
public void setUserDao(UserDao userDao)
userDao - The service mechanism data access object representing a User.public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String userName) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceuserName - The userName of the person authenticating.org.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic Collection<org.springframework.security.core.GrantedAuthority> getAuthorities(int access)
access - The int value representing the access of the user.Copyright © 1999-2013 UCAR/Unidata. All Rights Reserved.