Class LdapUserDetailsService
- java.lang.Object
-
- org.springframework.security.ldap.userdetails.LdapUserDetailsService
-
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class LdapUserDetailsService extends java.lang.Object implements org.springframework.security.core.userdetails.UserDetailsService
LDAP implementation of UserDetailsService based around anLdapUserSearch
and anLdapAuthoritiesPopulator
. The final UserDetails object returned from loadUserByUsername is created by the configured UserDetailsContextMapper.
-
-
Constructor Summary
Constructors Constructor Description LdapUserDetailsService(LdapUserSearch userSearch)
LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
loadUserByUsername(java.lang.String username)
void
setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)
-
-
-
Constructor Detail
-
LdapUserDetailsService
public LdapUserDetailsService(LdapUserSearch userSearch)
-
LdapUserDetailsService
public LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
-
-
Method Detail
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(java.lang.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
public void setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)
-
-