Package com.sun.enterprise.security
Interface GroupPrincipal
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMember(Principal principal)
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 Detail
-
isMember
boolean isMember(Principal principal)
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.
-
-