Interface LdapAuthoritiesPopulator

All Known Implementing Classes:
DefaultLdapAuthoritiesPopulator, NullLdapAuthoritiesPopulator, UserDetailsServiceLdapAuthoritiesPopulator

public interface LdapAuthoritiesPopulator

Obtains a list of granted authorities for an Ldap user.

Used by the LdapAuthenticationProvider once a user has been authenticated to create the final user details object.

Method Summary
 java.util.Collection<GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, java.lang.String username)
          Get the list of authorities for the user.

Method Detail


java.util.Collection<GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData,
                                                             java.lang.String username)
Get the list of authorities for the user.

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