ERUCES::TEUserAndPasswordInfo
#include <teuser.h>
The TEUserAndPasswordInfo class represents a native user authenticated by a username and password pair.
This class is derived from the TEPrincipalInfo class.
Inheritance
- Inherits ERUCES::TEPrincipalInfo
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| _TESTD string | CLASSNAME |
Public Member Functions
| Member | Description |
|---|---|
TEUserAndPasswordInfo() | The TEUserAndPasswordInfo constructor is the default class constructor. |
TEUserAndPasswordInfo(const TEUserAndPasswordInfo &) | The TEUserAndPasswordInfo constructor copies an object. |
~TEUserAndPasswordInfo() | The TEUserAndPasswordInfo destructor is the class destructor. |
const _TESTD string getPrincipalName() const | The getPrincipalName method gets a principal name. |
void setUserName(const _TESTD string &name) | The setUserName method sets a username. |
const _TESTD string getUserName() const | The getUserName method gets a username. |
void setPassword(const _TESTD string &passwd, const _TESTD string &logonPasswd) | The setPassword method sets a native user's password. |
const _TESTD string getClassName() const | The getClassName method gets a TEUserAndPasswordInfo object's class name. |
TEObject * clone() const | The clone method clones a TEUserAndPasswordInfo object. |
Member Function Documentation
TEUserAndPasswordInfo()
The TEUserAndPasswordInfo constructor is the default class constructor.
TEUserAndPasswordInfo(const TEUserAndPasswordInfo &)
The TEUserAndPasswordInfo constructor copies an object.
~TEUserAndPasswordInfo()
The TEUserAndPasswordInfo destructor is the class destructor.
const _TESTD string getPrincipalName() const
The getPrincipalName method gets a principal name.
Returns: Returns a string representing a principal name.
void setUserName(const _TESTD string &name)
The setUserName method sets a username.
Parameters
| Parameter | Description |
|---|---|
name | A string representing a username to be set. |
const _TESTD string getUserName() const
The getUserName method gets a username.
Returns: Returns a string representing a username.
void setPassword(const _TESTD string &passwd, const _TESTD string &logonPasswd)
The setPassword method sets a native user's password.
Parameters
| Parameter | Description |
|---|---|
passwd | A string representing the new password to be set. |
logonPasswd | A string representing the password of the currently logged-on user. |
const _TESTD string getClassName() const
The getClassName method gets a TEUserAndPasswordInfo object's class name.
Returns: Returns the class name of a TEUserAndPasswordInfo object.
TEObject * clone() const
The clone method clones a TEUserAndPasswordInfo object.
Returns: Returns a newly cloned TEUserAndPasswordInfo object.