# Interface GroupPrincipal

All Superinterfaces:
  `Principal, UserPrincipal`

public interface GroupPrincipal extends UserPrincipal
A `UserPrincipal` representing a group identity, used to determine access rights to objects in a file system. The exact definition of a group is implementation specific, but typically, it represents an identity created for administrative purposes so as to determine the access rights for the members of the group. Whether an entity can be a member of multiple groups, and whether groups can be nested, are implementation specified and therefore not specified.

Since:
  1.7
See Also:
  - `UserPrincipalLookupService.lookupPrincipalByGroupName(String)`

- ## Method Summary

  ### Methods declared in interface Principal

  `equals, getName, hashCode, implies, toString`
  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object another)`
  Compares this `Principal` to the specified object.
  `String`
  `getName()`
  Returns the name of this `Principal`.
  `int`
  `hashCode()`
  Returns a hashcode for this `Principal`.
  `default boolean`
  `implies(Subject subject)`
  Returns `true` if the specified subject is implied by this `Principal`.
  `String`
  `toString()`
  Returns a string representation of this `Principal`.