Class FromGroupSearchLDAPGroupMembershipStrategy

All Implemented Interfaces:
Describable<LDAPGroupMembershipStrategy>

public class FromGroupSearchLDAPGroupMembershipStrategy extends LDAPGroupMembershipStrategy
Traditional strategy.
Since:
1.10
  • Constructor Details

    • FromGroupSearchLDAPGroupMembershipStrategy

      @DataBoundConstructor public FromGroupSearchLDAPGroupMembershipStrategy(String filter)
  • Method Details

    • getFilter

      public String getFilter()
    • setAuthoritiesPopulator

      public void setAuthoritiesPopulator(org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator authoritiesPopulator)
      Description copied from class: LDAPGroupMembershipStrategy
      Override this method if you want to change the configuration of the LdapAuthoritiesPopulator.
      Overrides:
      setAuthoritiesPopulator in class LDAPGroupMembershipStrategy
      Parameters:
      authoritiesPopulator - the LdapAuthoritiesPopulator to use (and abuse).
    • getGrantedAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getGrantedAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username)
      Description copied from class: LDAPGroupMembershipStrategy
      Returns the GrantedAuthoritys that the specified user belongs to.
      Specified by:
      getGrantedAuthorities in class LDAPGroupMembershipStrategy
      Parameters:
      userData - as in
      Returns:
      the GrantedAuthoritys that the specified user belongs to.
    • getGroupMembers

      public Set<String> getGroupMembers(String groupDn, LDAPConfiguration conf)
      Description copied from class: LDAPGroupMembershipStrategy
      Returns a Set of all members in the specified group.
      Overrides:
      getGroupMembers in class LDAPGroupMembershipStrategy
      Parameters:
      groupDn - the DN of the group whose members will be returned.
      conf - the LDAPConfiguration that controls some search variables.
      Returns:
      a set of all members in the specified group, or null if the members could not be found.