public final class GroupPrincipals
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isGroup(@NotNull java.security.Principal principal)
Checks if the provided principal is a group.
|
static boolean |
isMember(@NotNull java.security.Principal principal,
@NotNull java.security.Principal member)
Returns true if the passed principal is a member of the group.
|
static @NotNull java.util.Enumeration<? extends java.security.Principal> |
members(@NotNull java.security.Principal principal)
Returns an enumeration of the members in the group.
|
static @NotNull java.util.Enumeration<? extends java.security.Principal> |
transform(@NotNull java.util.Enumeration<? extends java.security.Principal> members) |
static @NotNull java.util.Set<java.security.Principal> |
transform(@NotNull java.util.Set<java.security.acl.Group> groups) |
public static boolean isGroup(@NotNull @NotNull java.security.Principal principal)
principal
- to be checked.@NotNull public static @NotNull java.util.Enumeration<? extends java.security.Principal> members(@NotNull @NotNull java.security.Principal principal)
principal
- the principal whose membership is listed.public static boolean isMember(@NotNull @NotNull java.security.Principal principal, @NotNull @NotNull java.security.Principal member)
principal
- the principal whose members are being checked.member
- the principal whose membership is to be checked.@NotNull public static @NotNull java.util.Set<java.security.Principal> transform(@NotNull @NotNull java.util.Set<java.security.acl.Group> groups)
@NotNull public static @NotNull java.util.Enumeration<? extends java.security.Principal> transform(@NotNull @NotNull java.util.Enumeration<? extends java.security.Principal> members)
Copyright © 2010 - 2020 Adobe. All Rights Reserved