public class

UserDetailsServiceLdapAuthoritiesPopulator

extends Object
implements LdapAuthoritiesPopulator
java.lang.Object
   ↳ org.springframework.security.ldap.authentication.UserDetailsServiceLdapAuthoritiesPopulator

Class Overview

Simple LdapAuthoritiesPopulator which delegates to a UserDetailsService, using the name which was supplied at login as the username.

Summary

Public Constructors
UserDetailsServiceLdapAuthoritiesPopulator(UserDetailsService userService)
Public Methods
Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOperations userData, String username)
Get the list of authorities for the user.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator

Public Constructors

public UserDetailsServiceLdapAuthoritiesPopulator (UserDetailsService userService)

Public Methods

public Collection<? extends GrantedAuthority> getGrantedAuthorities (DirContextOperations userData, String username)

Get the list of authorities for the user.

Parameters
userData the context object which was returned by the LDAP authenticator.
Returns
  • the granted authorities for the given user.