#include <UserManager.h>
Inheritance diagram for UserManager:
Public Member Functions | |
virtual int | createUser (const char *name, const char *passwd)=0 |
creates new User in the system. | |
virtual int | deleteUser (const char *name)=0 |
deleted user from the system Only default dba user is allowed to call this method. | |
virtual int | changePassword (const char *newPasswd)=0 |
changes password for self. | |
virtual int | changePassword (const char *userName, const char *newPasswd)=0 |
changes the password for specified user. | |
virtual | ~UserManager () |
This manages all the users in the system. Only default dba user
can create and delete users in the system.
If user wants to change his password, he should first get the connection and then call
appropriate method in this object to change his password.
Functionality:
1.Add and Delete Users
2.Change Password
Definition at line 34 of file UserManager.h.
virtual UserManager::~UserManager | ( | ) | [inline, virtual] |
virtual int UserManager::changePassword | ( | const char * | userName, | |
const char * | newPasswd | |||
) | [pure virtual] |
changes the password for specified user.
Only default dba user is allowed to call this method.
username | username for authentication | |
password | password for authentication |
Implemented in UserManagerImpl.
virtual int UserManager::changePassword | ( | const char * | newPasswd | ) | [pure virtual] |
changes password for self.
Logged in user password is set to
specified password.
newPasswd | new password to be set. |
Implemented in UserManagerImpl.
virtual int UserManager::createUser | ( | const char * | name, | |
const char * | passwd | |||
) | [pure virtual] |
creates new User in the system.
Only default dba user is allowed to call this method.
name | username to be created | |
passwd | password for the schema created |
Implemented in UserManagerImpl.
virtual int UserManager::deleteUser | ( | const char * | name | ) | [pure virtual] |
deleted user from the system
Only default dba user is allowed to call this method.
name | username to be deleted |
Implemented in UserManagerImpl.