Package com.sun.enterprise.security
Interface GroupPrincipal
- All Superinterfaces:
Principal
A group of principals.
- Author:
- Arjan Tijms
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true when the given principal is in this group.Enumeration<? extends Principal>
members()
Returns an enumeration of all the principals in this group.
-
Method Details
-
isMember
Returns true when the given principal is in this group.A recursive search is done, meaning that if a principal is in a group which is itself in this group, the result is true.
- Parameters:
principal
- the principal for which we check to be in this group.- Returns:
- true if the principal is in this group, false otherwise.
-
members
Enumeration<? extends Principal> members()Returns an enumeration of all the principals in this group.The returned principals can include principals that are besides instanced of Principal also instances of GroupPrincipal.
- Returns:
- an enumeration of principals in this group, potentially including nested group principals.
-