Class LDAPGroupMembershipStrategy

    • Constructor Detail

      • LDAPGroupMembershipStrategy

        public LDAPGroupMembershipStrategy()
    • Method Detail

      • getAuthoritiesPopulator

        public org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator getAuthoritiesPopulator()
        The LdapAuthoritiesPopulator to use if performing a traditional search.
        Returns:
        The LdapAuthoritiesPopulator to use if performing a traditional search.
      • setAuthoritiesPopulator

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

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

        public Set<String> getGroupMembers​(String groupDn,
                                           LDAPConfiguration conf)
        Returns a Set of all members in the specified group.
        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.
        Since:
        1.18