Class GshadowFile.Entry

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

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

  • Method Details

    • toString

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

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

      public Group.Name getGroupName()
      The group name the entry is for.
    • getPassword

      public String getPassword()
      The encrypted password or null if not set.
    • getGroupAdministrators

      public Set<User.Name> getGroupAdministrators()
      The unmodifiable set of group administrators or an empty set if not set.
    • getGroupMembers

      public Set<User.Name> getGroupMembers()
      The unmodifiable set of non-administrative group members or an empty set if not set.