spring-security-ldap

org.springframework.security.ldap.userdetails
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.

Author:
Luke Taylor

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

Method Detail

getGrantedAuthorities

Collection<org.springframework.security.core.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.

spring-security-ldap