public interface Group extends java.security.Principal
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.| Modifier and Type | Method and Description |
|---|---|
boolean |
addMember(java.security.Principal user)
This method adds a new
Principal to this group. |
boolean |
isMember(java.security.Principal member)
This method tests whether or not a given
Principal is a
member of this group. |
java.util.Enumeration<? extends java.security.Principal> |
members()
This method returns a list of all members of the group as an
Enumeration. |
boolean |
removeMember(java.security.Principal user)
This method deletes a member from the group.
|
boolean addMember(java.security.Principal user)
Principal to this group.user - The new Principal to addtrue if the user was successfully added or false if the user is already a memberboolean removeMember(java.security.Principal user)
user - The Principal to deletetrue if the user was successfully deleted or false if the user is not a member of the groupboolean isMember(java.security.Principal member)
Principal is a
member of this group.member - The Principal to test for membershiptrue if the user is member, false otherwisejava.util.Enumeration<? extends java.security.Principal> members()
Enumeration.