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.

Version:
$Id: LdapAuthoritiesPopulator.java 3925 2009-10-05 19:28:53Z ltaylor $
Author:
Luke Taylor

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

Method Detail

getGrantedAuthorities

Collection<GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.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.


Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.