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 @NotNull Enumeration<? extends Principal> |
members(@NotNull Principal principal)
Returns an enumeration of the members in the group.
|
static @NotNull Enumeration<? extends Principal> |
transform(@NotNull Enumeration<? extends Principal> members) |
static @NotNull Set<Principal> |
transform(@NotNull Set<Group> groups) |
public static boolean isGroup(@NotNull
@NotNull Principal principal)
principal - to be checked.@NotNull public static @NotNull 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.@NotNull public static @NotNull Set<Principal> transform(@NotNull @NotNull Set<Group> groups)
@NotNull public static @NotNull Enumeration<? extends Principal> transform(@NotNull @NotNull Enumeration<? extends Principal> members)
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.