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