Class NativeUnixSocketHelper
java.lang.Object
org.freedesktop.dbus.transport.jre.NativeUnixSocketHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetUid(SocketChannel _sock) Get the UID of peer credentials.
-
Method Details
-
getUid
Get the UID of peer credentials.- Parameters:
_sock- socket to read from- Returns:
- UID, -1 if given
SocketChannelwas null - Throws:
IOException- when socket channel fails to read SO_PEERCRED option
-