Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Methods](https://developer.android.com/reference/java/nio/file/attribute/GroupPrincipal#inhmethods)

# GroupPrincipal

` public interface GroupPrincipal `   
` implements https://developer.android.com/reference/java/nio/file/attribute/UserPrincipal `

|---|
| java.nio.file.attribute.GroupPrincipal |

<br />

*** ** * ** ***

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://developer.android.com/reference/java/nio/file/attribute/UserPrincipalLookupService#lookupPrincipalByGroupName(java.lang.String)`

## Summary

### Inherited methods

From interface ` https://developer.android.com/reference/java/security/Principal ` ` abstract boolean` ` https://developer.android.com/reference/java/security/Principal#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object another) `

Compares this principal to the specified object.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/security/Principal#getName()() `

Returns the name of this principal.
` abstract int` ` https://developer.android.com/reference/java/security/Principal#hashCode()() `

Returns a hashcode for this principal.
` default boolean` ` https://developer.android.com/reference/java/security/Principal#implies(javax.security.auth.Subject)(https://developer.android.com/reference/javax/security/auth/Subject subject) `

Returns true if the specified subject is implied by this principal.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/security/Principal#toString()() `

Returns a string representation of this principal.