Interface java.security.acl.Group
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface java.security.acl.Group

public interface Group
extends Object
extends Principal
This interface represents a group.

Method Index

 o addMember(Principal)
adds the specified member to the group.
 o isMember(Principal)
returns true if the passed principal is a member of the group.
 o members()
returns the enumeration of the members in the group.
 o removeMember(Principal)
removes the specified member from the group.

Methods

 o addMember
  public abstract boolean addMember(Principal user)
adds the specified member to the group.
Parameters:
user - The principal to add to the group.
Returns:
true if the member was successfully added, false if the principal was already a member.
 o removeMember
  public abstract boolean removeMember(Principal user)
removes the specified member from the group.
Parameters:
user - The principal to remove from the group.
true - if the principal was removed false if the principal was not a member
 o isMember
  public abstract boolean isMember(Principal member)
returns true if the passed principal is a member of the group. This method does a recursive search so if a principal belongs to a group which is a member of this group, then true is returned.
Parameters:
member - The principal whose membership must be checked for.
Returns:
true if the principal is a member of this group, false otherwise
 o members
  public abstract Enumeration members()
returns the enumeration of the members in the group. The returned objects can either be instances of Principal or instances of Group.

All Packages  Class Hierarchy  This Package  Previous  Next  Index