|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.userdetails.ldap.LdapUserDetailsService
public class LdapUserDetailsService
LDAP implementation of UserDetailsService based around an LdapUserSearch
and an LdapAuthoritiesPopulator
. The final UserDetails object
returned from loadUserByUsername is created by the configured UserDetailsContextMapper.
Constructor Summary | |
---|---|
LdapUserDetailsService(LdapUserSearch userSearch,
LdapAuthoritiesPopulator authoritiesPopulator)
|
Method Summary | |
---|---|
UserDetails |
loadUserByUsername(java.lang.String username)
Locates the user based on the username. |
void |
setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
Method Detail |
---|
public UserDetails loadUserByUsername(java.lang.String username) throws UsernameNotFoundException
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 GrantedAuthoritypublic void setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |