ERUCES::TENisAuthenticationContext
#include <teauthnisctx.h>
The TENisAuthenticationContext class is used for the management of NIS and UNIX users.
The TENisAuthenticationContext represents an username and password-based NIS authentication context This class is derived from the TEAuthenticationContext class.
Inheritance
- Inherits ERUCES::TEAuthenticationContext
Private Attrib
| Type | Name | Description |
|---|---|---|
| _TESTD string * | m_pstrUser | |
| _TESTD string * | m_pstrPasswd |
Private Func
| Member | Description |
|---|---|
TENisAuthenticationContext() | The TENisAuthenticationContext constructor is the default class constructor. |
TENisAuthenticationContext(const TENisAuthenticationContext &) | The TENisAuthenticationContext constructor copies a TENisAuthenticationContextCopy object. |
Public Member Functions
| Member | Description |
|---|---|
~TENisAuthenticationContext() | The TENisAuthenticationContext destructor is the class destructor. |
void setUser(const _TESTD string user) | The setUser method sets a username. |
const _TESTD string getUser() const | The getUser method returns a string representing a user name. |
void setPasswd(const _TESTD string passwd) | The setPasswd method sets a password. |
te_oid authenticate() | The authenticate method authenticates a principal. |
TEObject * clone() const | The clone method clones a TENisAuthenticationContext object. |
Static Public Member Functions
| Member | Description |
|---|---|
_TESTD auto_ptr< TENisAuthenticationContext > getInstance() | The getInstance method creates a new TENisAuthenticationContext object. |
Member Function Documentation
TENisAuthenticationContext()
The TENisAuthenticationContext constructor is the default class constructor.
TENisAuthenticationContext(const TENisAuthenticationContext &)
The TENisAuthenticationContext constructor copies a TENisAuthenticationContextCopy object.
~TENisAuthenticationContext()
The TENisAuthenticationContext destructor is the class destructor.
void setUser(const _TESTD string user)
The setUser method sets a username.
Parameters
| Parameter | Description |
|---|---|
user | A string representing a username. |
const _TESTD string getUser() const
The getUser method returns a string representing a user name.
Returns: Returns a string representing a username.
void setPasswd(const _TESTD string passwd)
The setPasswd method sets a password.
Parameters
| Parameter | Description |
|---|---|
passwd | A string representing a password. |
te_oid authenticate()
The authenticate method authenticates a principal.
Returns: Returns a long integer represeting the principal ID of the authenticated principal.
TEObject * clone() const
The clone method clones a TENisAuthenticationContext object.
Returns: Returns a cloned TEUserAuthenticationContext object.
_TESTD auto_ptr< TENisAuthenticationContext > getInstance()
The getInstance method creates a new TENisAuthenticationContext object.
Returns: Returns a smart pointer to a TEUserAuthenticationContext object.