FtpUserAccountManager manages user accounts for FTP servers.
More...
FtpUserAccountManager manages user accounts for FTP servers.
◆ addFtpUser()
void FtpUserAccountManager::addFtpUser |
( |
string |
, |
|
|
string |
, |
|
|
string |
|
|
) |
| |
Adds an FTP user account with the specified username, password, and permissions.
- Parameters
-
username,the | username for the account. |
password,the | password for the account. |
perms,the | permissions for the account. Permissions: R - Read W - Write N - Rename L - List D - Delete Example: "RW" will permit read and write operations |
◆ getPasswordAt()
string FtpUserAccountManager::getPasswordAt |
( |
int |
| ) |
|
Returns the password at given index.
- Parameters
-
- Returns
- string, the password at given index.
◆ getPermissionAt()
string FtpUserAccountManager::getPermissionAt |
( |
int |
| ) |
|
Returns the permission at given index.
- Parameters
-
- Returns
- string, the permission at given index.
◆ getUsernameAt()
string FtpUserAccountManager::getUsernameAt |
( |
int |
| ) |
|
Returns the username at given index.
- Parameters
-
- Returns
- string, the username at given index.
◆ getUsersCount()
int FtpUserAccountManager::getUsersCount |
( |
| ) |
|
Returns the number of users accounts.
- Returns
- int, the number of users accounts.
◆ isExistingUser()
bool FtpUserAccountManager::isExistingUser |
( |
string |
| ) |
|
Returns true if the specified username already exists, otherwise false.
- Parameters
-
username,the | username of the account of interest. |
- Returns
- bool, true if the specified username already exists, otherwise false.
◆ removeFtpUser()
void FtpUserAccountManager::removeFtpUser |
( |
string |
| ) |
|
Removes the specified FTP user account.
- Parameters
-
username,the | username of the account of interest. |
The documentation for this class was generated from the following file: