41#ifndef _DWMPASSWORD_HH_
42#define _DWMPASSWORD_HH_
76 void Set(
const struct passwd & passwdStruct);
120 std::string _userName;
121 std::string _encryptedPassword;
125 std::string _homeDirectory;
128 static std::mutex _mutex;
Encapsulates an /etc/passwd entry.
Definition DwmPassword.hh:61
const std::string & Shell() const
Returns the shell.
friend std::ostream & operator<<(std::ostream &os, const Password &password)
Prints to an ostream in /etc/passwd format.
Password(uid_t userId)
Construct from a user ID.
const std::string & HomeDirectory() const
Returns the home directory.
const std::string & UserName() const
Returns the user name.
gid_t GroupId() const
Returns the group ID.
Password(const std::string &userName)
Construct from a user name.
const std::string & Gecos() const
Returns the gecos.
const std::string & EncryptedPassword() const
Returns the user password.
uid_t UserId() const
Returns the user ID.
void Set(const struct passwd &passwdStruct)
Use the contents of passwdStruct to fill all of our members.