Interface NamedGroup
-
- All Superinterfaces:
Principal
public interface NamedGroup extends Principal
An interface to represent a named group of principals.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisMember(Principal member)Check if the suppliedPrincipalis a member of this group.Enumeration<? extends Principal>members()Return anEnumerationof thePrincipalinstances in this group.
-
-
-
Method Detail
-
isMember
boolean isMember(Principal member)
Check if the suppliedPrincipalis a member of this group.- Parameters:
member- ThePrincipalto check for group membership.- Returns:
trueif the suppliedPrincipalis a member of this group, otherwisefalse.
-
members
Enumeration<? extends Principal> members()
Return anEnumerationof thePrincipalinstances in this group.- Returns:
- an
Enumerationof thePrincipalinstances in this group.
-
-