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 Details

  • Method Details

    • 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)