java.security.acl
Interface Group
java.lang.Object
|
+--java.security.Principal
|
+--java.security.acl.Group
All Implemented Interfaces:
Principal
This interface represents a group of Principals. Note that
since this interface extends Principal, a Group
can be used where ever a Principal is requested. This
includes arguments to the methods in this interface.
Author:- Aaron M. Renn (arenn@urbanophile.com)
addMember
public boolean addMember(java.security.Principal user) This method adds a new Principal to this group.
Parameters:
Returns:
true if the user was successfully added or false if the user is already a member
isMember
public boolean isMember(java.security.Principal member) This method tests whether or not a given Principal is a
member of this group.
Parameters:
Returns:
true if the user is member, false otherwise
members
public Enumeration members() This method returns a list of all members of the group as an
Enumeration.
Returns:
- The list of all members of the group
removeMember
public boolean removeMember(java.security.Principal user) This method deletes a member from the group.
Parameters:
Returns:
true if the user was successfully deleted or false if the user is not a member of the group
Principals. Note that since this interface extendsPrincipal, aGroupcan be used where ever aPrincipalis requested. This includes arguments to the methods in this interface.