org.springframework.security.ldap
Interface LdapAuthoritiesPopulator

All Known Implementing Classes:
DefaultLdapAuthoritiesPopulator, 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.

Version:
$Id: LdapAuthoritiesPopulator.java 3036 2008-05-06 14:43:52Z luke_t $
Author:
Luke Taylor

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

Method Detail

getGrantedAuthorities

GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData,
                                         java.lang.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.