Class 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 an LdapUserSearch and an LdapAuthoritiesPopulator. The final UserDetails object returned from loadUserByUsername is created by the configured UserDetailsContextMapper.
    • 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 interface org.springframework.security.core.userdetails.UserDetailsService
        Throws:
        org.springframework.security.core.userdetails.UsernameNotFoundException