Class Credentials

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Ucred ucred  
    • Constructor Summary

      Constructors 
      Constructor Description
      Credentials​(Ucred ucred)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static Credentials getCredentials​(int fd)  
      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.
      java.lang.String toString()
      Returns a human readable description of this instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ucred

        private final Ucred ucred
    • Constructor Detail

      • Credentials

        Credentials​(Ucred ucred)
    • Method Detail

      • getPid

        public int getPid()
        Retrieves the peer's process ID.
        Returns:
        The PID.
      • getUid

        public int getUid()
        Retrieves the peer's numeric effective user ID.
        Returns:
        The EUID.
      • getGid

        public int getGid()
        Retrieves the peer's numeric effective group ID.
        Returns:
        The EGID.
      • toString

        public java.lang.String toString()
        Returns a human readable description of this instance.
        Overrides:
        toString in class java.lang.Object
      • getCredentials

        static Credentials getCredentials​(int fd)