Interface GroupPrincipal

  • All Superinterfaces:
    Principal

    public interface GroupPrincipal
    extends Principal
    A group of principals.
    Author:
    Arjan Tijms
    • 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.