org.springframework.security.ldap.userdetails
Class LdapUserDetailsService
java.lang.Object
org.springframework.security.ldap.userdetails.LdapUserDetailsService
- All Implemented Interfaces:
- org.springframework.security.core.userdetails.UserDetailsService
public class LdapUserDetailsService
- extends Object
- implements org.springframework.security.core.userdetails.UserDetailsService
LDAP implementation of UserDetailsService based around an LdapUserSearch
and an LdapAuthoritiesPopulator. The final UserDetails object
returned from loadUserByUsername is created by the configured UserDetailsContextMapper.
- Author:
- Luke Taylor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapUserDetailsService
public LdapUserDetailsService(LdapUserSearch userSearch)
LdapUserDetailsService
public LdapUserDetailsService(LdapUserSearch userSearch,
LdapAuthoritiesPopulator authoritiesPopulator)
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username)
throws org.springframework.security.core.userdetails.UsernameNotFoundException
- Specified by:
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
setUserDetailsMapper
public void setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)