/** * {@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; }
/** * {@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; }