/** * Returns the name of all the groups that this user belongs to. * This is called from web path role verification, though * it should not be. * * @param username Name of the user in this realm whose group listing * is needed. * @return Enumeration of group names (strings). * @exception InvalidOperationException thrown if the realm does not * support this operation - e.g. Certificate realm does not support * this operation. */ public Enumeration getGroupNames (String username) throws InvalidOperationException, NoSuchUserException { Vector v = (Vector)groupCache.get(username); if (v == null) { v = loadGroupNames(username); } return v.elements(); }
/** * Returns the name of all the groups that this user belongs to. * This is called from web path role verification, though * it should not be. * * @param username Name of the user in this realm whose group listing * is needed. * @return Enumeration of group names (strings). * @exception InvalidOperationException thrown if the realm does not * support this operation - e.g. Certificate realm does not support * this operation. */ public Enumeration getGroupNames (String username) throws InvalidOperationException, NoSuchUserException { Vector v = (Vector)groupCache.get(username); if (v == null) { v = loadGroupNames(username); } return v.elements(); }
/** * Returns the name of all the groups that this user belongs to. * This is called from web path role verification, though * it should not be. * * @param username Name of the user in this realm whose group listing * is needed. * @return Enumeration of group names (strings). * @exception InvalidOperationException thrown if the realm does not * support this operation - e.g. Certificate realm does not support * this operation. */ public Enumeration getGroupNames (String username) throws InvalidOperationException, NoSuchUserException { Vector v = (Vector)groupCache.get(username); if (v == null) { v = loadGroupNames(username); } return v.elements(); }