public final class Credentials extends Object
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(java.net.SocketOption<T>) and UnixDatagramChannel.getOption(java.net.SocketOption<T>).
See also: socket (7)
| Modifier and Type | Method and Description |
|---|---|
int |
getGid()
Retrieves the peer's numeric effective group ID.
|
int |
getPid()
Retrieves the peer's process ID.
|
int |
getUid()
Retrieves the peer's numeric effective user ID.
|
String |
toString()
Returns a human readable description of this instance.
|
Copyright © 2017. All rights reserved.