public class UserRoleDaoUserDetailsService extends Object implements org.springframework.security.userdetails.UserDetailsService
UserDetailsService that delegates to an IUserRoleDao to load users by username.| Constructor and Description |
|---|
UserRoleDaoUserDetailsService() |
| Modifier and Type | Method and Description |
|---|---|
String |
getRolePrefix() |
org.springframework.security.userdetails.UserDetails |
loadUserByUsername(String username) |
void |
setDefaultRole(String defaultRole)
The default role which will be assigned to all users.
|
void |
setRolePrefix(String rolePrefix)
Allows a default role prefix to be specified.
|
void |
setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao) |
public org.springframework.security.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.userdetails.UserDetailsServiceorg.springframework.security.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic void setRolePrefix(String rolePrefix)
ROLE_ prefix
expected to exist in role names (by default) by some other Spring Security framework classes, in the case that
the prefix is not already present in the db.rolePrefix - the new prefixpublic String getRolePrefix()
public void setUserRoleDao(org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao userRoleDao)
public void setDefaultRole(String defaultRole)
defaultRole - the role name, including any desired prefix.