public class LdapUserDetailsService extends Object implements org.springframework.security.core.userdetails.UserDetailsService
LdapUserSearch and an
LdapAuthoritiesPopulator. The final UserDetails object returned from
loadUserByUsername is created by the configured
UserDetailsContextMapper.| Constructor and Description |
|---|
LdapUserDetailsService(LdapUserSearch userSearch) |
LdapUserDetailsService(LdapUserSearch userSearch,
LdapAuthoritiesPopulator authoritiesPopulator) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
void |
setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper) |
public LdapUserDetailsService(LdapUserSearch userSearch)
public LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceorg.springframework.security.core.userdetails.UsernameNotFoundExceptionpublic void setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)