java.lang.Object
com.aoindustries.aoserv.daemon.posix.PasswdFile.Entry
Enclosing class:
PasswdFile

public static final class PasswdFile.Entry extends Object
Represents one line of the /etc/passwd file on a POSIX server.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Gets this PasswdFile.Entry as it would be written in /etc/passwd, not including any newline.
      Overrides:
      toString in class Object
      See Also:
    • appendTo

      public <A extends Appendable> A appendTo(A out) throws IOException
      Appends this PasswdFile.Entry as it would be written in /etc/passwd, not including any newline.
      Throws:
      IOException
      See Also:
    • getUsername

      public User.Name getUsername()
      The username the entry is for.
    • getUid

      public int getUid()
      The user id.
    • getGid

      public int getGid()
      The group id.
    • getFullName

      public User.Gecos getFullName()
      The full name or null if not set.
    • getOfficeLocation

      public User.Gecos getOfficeLocation()
      The office location or null if not set.
    • getOfficePhone

      public User.Gecos getOfficePhone()
      The office phone or null if not set.
    • getHomePhone

      public User.Gecos getHomePhone()
      The home phone or null if not set.
    • getHome

      public PosixPath getHome()
      The home directory.
    • getShell

      public PosixPath getShell()
      The shell interpreter.