Class PeerCredentials


  • @UnstableApi
    public final class PeerCredentials
    extends Object
    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
    • Method Detail

      • pid

        public int pid()
        Get the PID of the peer process.

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

        Returns:
        The PID of the peer process.
      • uid

        public int uid()
      • gids

        public int[] gids()