public class CrowdUserDetailsServiceWrapper extends Object implements org.springframework.security.core.userdetails.UserDetailsService
UserDetailsService
is used to wrap the user created by the CrowdUserDetailsServiceImpl
to replace its crowd groups by our application rolesCrowdGrantedAuthoritiesMapper
Constructor and Description |
---|
CrowdUserDetailsServiceWrapper(com.atlassian.crowd.integration.springsecurity.user.CrowdUserDetailsServiceImpl crowdUserDetailsServiceImpl,
CrowdGrantedAuthoritiesMapper grantedAuthoritiesMapper)
Constructor for CrowdUserDetailsServiceWrapper.
|
public CrowdUserDetailsServiceWrapper(com.atlassian.crowd.integration.springsecurity.user.CrowdUserDetailsServiceImpl crowdUserDetailsServiceImpl, CrowdGrantedAuthoritiesMapper grantedAuthoritiesMapper)
Constructor for CrowdUserDetailsServiceWrapper.
crowdUserDetailsServiceImpl
- a CrowdUserDetailsServiceImpl
object.grantedAuthoritiesMapper
- a CrowdGrantedAuthoritiesMapper
object.public ICrowdUserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
UserDetails
object that comes back may have a username that is of a different case than what was
actually requested..loadUserByUsername
in interface org.springframework.security.core.userdetails.UserDetailsService
org.springframework.security.core.userdetails.UsernameNotFoundException
org.springframework.dao.DataAccessException
Copyright © 2011–2016 eXo Platform SAS. All rights reserved.