Rudiments: /home/dmuse/temp/rudiments/include/rudiments/userentry.h Source File

Rudiments

userentry.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_USERENTRY_H
5 #define RUDIMENTS_USERENTRY_H
6
7 #include <rudiments/private/userentryincludes.h>
8
11 class RUDIMENTS_DLLSPEC userentry {
12 public:
13
15 userentry();
16
19 userentry(const userentry &u);
20
23 userentry &operator=(const userentry &u);
24
26 ~userentry();
27
30 bool initialize(const char *username);
31
34 bool initialize(uid_t userid);
35
37 const char *getName() const;
38
40 const char *getPassword() const;
41
52 uid_t getUserId() const;
53
61 const char *getSidString() const;
62
70 const void *getSid() const;
71
74 uint64_t getSidSize() const;
75
77 gid_t getPrimaryGroupId() const;
78
80 const char *getRealName() const;
81
83 const char *getHomeDirectory() const;
84
86 const char *getShell() const;
87
89 const char *getEncryptedPassword() const;
90
94 long getLastChangeDate() const;
95
98 int32_t getDaysBeforeChangeAllowed() const;
99
102 int32_t getDaysBeforeChangeRequired() const;
103
106 int32_t getDaysBeforeExpirationWarning() const;
107
110 int32_t getDaysOfInactivityAllowed() const;
111
114 int32_t getExpirationDate() const;
115
117 int32_t getFlag() const;
118
119
128 static char *getName(uid_t userid);
129
136 static uid_t getUserId(const char *username);
137
148 static char *getSidString(const char *username);
149
155 static bool platformSupportsFormalSid();
156
159 static bool needsMutex();
160
164 static void setMutex(threadmutex *mtx);
165
166 #include <rudiments/private/userentry.h>
167 };
168
169 #endif
threadmutex
Definition: threadmutex.h:11
userentry
Definition: userentry.h:11
userentry::getSidSize
uint64_t getSidSize() const
userentry::initialize
bool initialize(uid_t userid)
userentry::getUserId
static uid_t getUserId(const char *username)
userentry::getSid
const void * getSid() const
userentry::getUserId
uid_t getUserId() const
userentry::~userentry
~userentry()
userentry::operator=
userentry & operator=(const userentry &u)
userentry::getEncryptedPassword
const char * getEncryptedPassword() const
userentry::getShell
const char * getShell() const
userentry::getName
const char * getName() const
userentry::getHomeDirectory
const char * getHomeDirectory() const
userentry::getPrimaryGroupId
gid_t getPrimaryGroupId() const
userentry::getDaysBeforeExpirationWarning
int32_t getDaysBeforeExpirationWarning() const
userentry::getSidString
const char * getSidString() const
userentry::getRealName
const char * getRealName() const
userentry::getSidString
static char * getSidString(const char *username)
userentry::getExpirationDate
int32_t getExpirationDate() const
userentry::setMutex
static void setMutex(threadmutex *mtx)
userentry::getName
static char * getName(uid_t userid)
userentry::getDaysOfInactivityAllowed
int32_t getDaysOfInactivityAllowed() const
userentry::getLastChangeDate
long getLastChangeDate() const
userentry::platformSupportsFormalSid
static bool platformSupportsFormalSid()
userentry::getDaysBeforeChangeRequired
int32_t getDaysBeforeChangeRequired() const
userentry::userentry
userentry()
userentry::needsMutex
static bool needsMutex()
userentry::initialize
bool initialize(const char *username)
userentry::userentry
userentry(const userentry &u)
userentry::getDaysBeforeChangeAllowed
int32_t getDaysBeforeChangeAllowed() const
userentry::getFlag
int32_t getFlag() const
userentry::getPassword
const char * getPassword() const