user
- the user identitygroup
- the group identitypublic record UnixDomainPrincipal(UserPrincipal user, GroupPrincipal group) extends Record
Constructor | Description |
---|---|
UnixDomainPrincipal |
Creates a UnixDomainPrincipal. |
Modifier and Type | Method | Description |
---|---|---|
final boolean |
equals |
Indicates whether some other object is "equal to" this one. |
GroupPrincipal |
group() |
Returns the value of the group record component. |
final int |
hashCode() |
Returns a hash code value for this object. |
final String |
toString() |
Returns a string representation of this record class. |
UserPrincipal |
user() |
Returns the value of the user record component. |
public UnixDomainPrincipal(UserPrincipal user, GroupPrincipal group)
user
- the user identitygroup
- the group identityNullPointerException
- if user
or group
are null
.public final String toString()
public final int hashCode()
public final boolean equals(Object o)
Objects::equals(Object,Object)
.public UserPrincipal user()
user
record component.user
record componentpublic GroupPrincipal group()
group
record component.group
record component
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.net/jdk/net/UnixDomainPrincipal.html