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.-
Constructor Summary
ConstructorDescriptionLdapUserDetailsService
(LdapUserSearch userSearch) LdapUserDetailsService
(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String username) void
setUserDetailsMapper
(UserDetailsContextMapper userDetailsMapper)
-
Constructor Details
-
LdapUserDetailsService
-
LdapUserDetailsService
public LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
setUserDetailsMapper
-