public final class GroupPrincipals extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isGroup(Principal principal)
Checks if the provided principal is a group.
|
static boolean |
isMember(Principal principal,
Principal member)
Returns true if the passed principal is a member of the group.
|
static Enumeration<? extends Principal> |
members(Principal principal)
Returns an enumeration of the members in the group.
|
public static boolean isGroup(Principal principal)
principal
- to be checked.public static Enumeration<? extends Principal> members(Principal principal)
principal
- the principal whose membership is listed.public static boolean isMember(Principal principal, Principal member)
principal
- the principal whose members are being checked.member
- the principal whose membership is to be checked.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.