spring-security-ldap

org.springframework.security.ldap.userdetails
Class LdapUserDetailsService

java.lang.Object
  extended by 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

Constructor Summary
LdapUserDetailsService(LdapUserSearch userSearch)
           
LdapUserDetailsService(LdapUserSearch userSearch, LdapAuthoritiesPopulator authoritiesPopulator)
           
 
Method Summary
 org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username)
           
 void setUserDetailsMapper(UserDetailsContextMapper userDetailsMapper)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

spring-security-ldap