Top Description Fields Constructors Methods
io.netty5.channel.unix

public final Class PeerCredentials

extends Object
Class Inheritance
Annotations
@UnstableApi
Imports
io.netty5.util.internal.UnstableApi

User credentials discovered for the peer unix domain socket. The PID, UID and GID of the user connected on the other side of the unix domain socket For details see: SO_PEERCRED

Field Summary

Modifier and TypeField and Description
private final int[]
private final int
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
PeerCredentials(int p, int u, int... gids)

Method Summary

Modifier and TypeMethod and Description
public int[]
gids()

public int

Returns:

The PID of the peer process.
pid
()

Get the PID of the peer process.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public int
uid()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

gidsback to summary
private final int[] gids
pidback to summary
private final int pid
uidback to summary
private final int uid

Constructor Detail

PeerCredentialsback to summary
pack-priv PeerCredentials(int p, int u, int... gids)

Method Detail

gidsback to summary
public int[] gids()
pidback to summary
public int pid()

Get the PID of the peer process.

This is currently not populated on MacOS and BSD based systems.

Returns:int

The PID of the peer process.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
uidback to summary
public int uid()