/** * {@inheritDoc} */ @Override public Set<GrantedAuthority> getGroupMembershipRoles(String userDn, String username) { if (getGroupSearchBase() == null) { return new HashSet<>(); } Set<GrantedAuthority> authorities = new HashSet<>(); performNestedSearch(userDn, username, authorities, getMaxSearchDepth()); return authorities; }
performNestedSearch(dn, roleName, authorities, (depth - 1));
/** * {@inheritDoc} */ @Override public Set<GrantedAuthority> getGroupMembershipRoles(String userDn, String username) { if (getGroupSearchBase() == null) { return new HashSet<>(); } Set<GrantedAuthority> authorities = new HashSet<>(); performNestedSearch(userDn, username, authorities, getMaxSearchDepth()); return authorities; }
performNestedSearch(dn, roleName, authorities, (depth - 1));