An instance of this class can be retrieved, using either the socket-level methods
UnixSocket#getCredentials and UnixDatagramSocket#getCredentials or by specifying
UnixSocketOptions#SO_PEERCRED as argument to one of the
channel-level methods UnixSocketChannel#getOption and UnixDatagramChannel#getOption.
See also: socket (7)
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Credentials | |
| public int | |
| public int | |
| public int | |
| public String | toString()
Overrides java. |
| ucred | back to summary |
|---|---|
| private final Ucred ucred | |
| Credentials | back to summary |
|---|---|
| pack-priv Credentials(Ucred ucred) | |
| getCredentials | back to summary |
|---|---|
| pack-priv static Credentials getCredentials(int fd) | |
| getGid | back to summary |
|---|---|
| public int getGid() Retrieves the peer's numeric effective group ID.
| |
| getPid | back to summary |
|---|---|
| public int getPid() Retrieves the peer's process ID.
| |
| getUid | back to summary |
|---|---|
| public int getUid() Retrieves the peer's numeric effective user ID.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a human readable description of this instance.
| |