Spring Security Framework

org.springframework.security.ldap.populator
Class UserDetailsServiceLdapAuthoritiesPopulator

java.lang.Object
  extended by org.springframework.security.ldap.populator.UserDetailsServiceLdapAuthoritiesPopulator
All Implemented Interfaces:
LdapAuthoritiesPopulator

public class UserDetailsServiceLdapAuthoritiesPopulator
extends Object
implements LdapAuthoritiesPopulator

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

Since:
2.0
Version:
$Id$
Author:
Luke Taylor

Constructor Summary
UserDetailsServiceLdapAuthoritiesPopulator(UserDetailsService userService)
           
 
Method Summary
 GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
          Get the list of authorities for the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserDetailsServiceLdapAuthoritiesPopulator

public UserDetailsServiceLdapAuthoritiesPopulator(UserDetailsService userService)
Method Detail

getGrantedAuthorities

public GrantedAuthority[] getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData,
                                                String username)
Description copied from interface: LdapAuthoritiesPopulator
Get the list of authorities for the user.

Specified by:
getGrantedAuthorities in interface LdapAuthoritiesPopulator
Parameters:
userData - the context object which was returned by the LDAP authenticator.
Returns:
the granted authorities for the given user.

Spring Security Framework

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