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