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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends GrantedAuthority>
getGrantedAuthorities
(org.springframework.ldap.core.DirContextOperations userData, String username) Get the list of authorities for the user.
-
Constructor Details
-
UserDetailsServiceLdapAuthoritiesPopulator
-
-
Method Details
-
getGrantedAuthorities
public Collection<? extends 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 interfaceLdapAuthoritiesPopulator
- Parameters:
userData
- the context object which was returned by the LDAP authenticator.- Returns:
- the granted authorities for the given user.
-