Home | History | Annotate | Download | only in acl

Lines Matching refs:Principal

29 import java.security.Principal;
32 * This interface is used to represent a group of principals. (A principal
35 * Note that Group extends Principal. Thus, either a Principal or a Group can
36 * be passed as an argument to methods containing a Principal parameter. For
37 * example, you can add either a Principal or a Group to a Group object by
39 * Principal or Group.
43 public interface Group extends Principal {
48 * @param user the principal to add to this group.
51 * false if the principal was already a member.
53 public boolean addMember(Principal user);
58 * @param user the principal to remove from this group.
60 * @return true if the principal was removed, or
61 * false if the principal was not a member.
63 public boolean removeMember(Principal user);
66 * Returns true if the passed principal is a member of the group.
67 * This method does a recursive search, so if a principal belongs to a
70 * @param member the principal whose membership is to be checked.
72 * @return true if the principal is a member of this group,
75 public boolean isMember(Principal member);
80 * The returned objects can be instances of either Principal
81 * or Group (which is a subclass of Principal).
85 public Enumeration<? extends Principal> members();