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.
-
addMember(Principal)
- adds the specified member to the group.
-
isMember(Principal)
- returns true if the passed principal is a member of the group.
-
members()
- returns the enumeration of the members in the group.
-
removeMember(Principal)
- removes the specified member from the group.
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.
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
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
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