Interface LdapAuthoritiesPopulator

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

  • Method Summary

    Modifier and Type
    Method
    Description
    getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
    Get the list of authorities for the user.
  • Method Details

    • getGrantedAuthorities

      Collection<? extends 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.