# GroupPrincipal

public interface **GroupPrincipal** implements [UserPrincipal](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipal.html) 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.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/attribute/UserPrincipalLookupService.html#lookupPrincipalByGroupName(java.lang.String)`

### Inherited Method Summary

From interface [java.security.Principal](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html)

|---|---|
| abstract boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) another) Compares this principal to the specified object. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getName](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html#getName())() Returns the name of this principal. |
| abstract int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html#hashCode())() Returns a hashcode for this principal. |
| boolean | [implies](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html#implies(javax.security.auth.Subject))([Subject](https://developers.google.com/j2objc/javadoc/jre/reference/javax/security/auth/Subject.html) subject) Returns true if the specified subject is implied by this principal. |
| abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/Principal.html#toString())() Returns a string representation of this principal. |