RoleHierarchyVoter
instead of populating the user Authentication object
with the additional authorities.public class UserDetailsServiceWrapper extends java.lang.Object implements UserDetailsService
Constructor and Description |
---|
UserDetailsServiceWrapper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
UserDetailsService |
getWrappedUserDetailsService()
Deprecated.
|
UserDetails |
loadUserByUsername(java.lang.String username)
Deprecated.
Locates the user based on the username.
|
void |
setRoleHierarchy(RoleHierarchy roleHierarchy)
Deprecated.
|
void |
setUserDetailsService(UserDetailsService userDetailsService)
Deprecated.
|
public void setRoleHierarchy(RoleHierarchy roleHierarchy)
public void setUserDetailsService(UserDetailsService userDetailsService)
public UserDetails loadUserByUsername(java.lang.String username) throws UsernameNotFoundException, org.springframework.dao.DataAccessException
UserDetailsService
UserDetails
object that comes back may have a username that is of a different case than what was
actually requested..loadUserByUsername
in interface UserDetailsService
username
- the username presented to the DaoAuthenticationProvider
null
)UsernameNotFoundException
- if the user could not be found or the user has no GrantedAuthorityorg.springframework.dao.DataAccessException
- if user could not be found for a repository-specific reasonpublic UserDetailsService getWrappedUserDetailsService()