org.springframework.security.ldap.authentication
Class UserDetailsServiceLdapAuthoritiesPopulator
java.lang.Object
org.springframework.security.ldap.authentication.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: UserDetailsServiceLdapAuthoritiesPopulator.java 3925 2009-10-05 19:28:53Z ltaylor $
- Author:
- Luke Taylor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDetailsServiceLdapAuthoritiesPopulator
public UserDetailsServiceLdapAuthoritiesPopulator(UserDetailsService userService)
getGrantedAuthorities
public Collection<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.
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.