Skip to main content

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

Private Attrib

TypeNameDescription
_TESTD string *m_pstrUser
_TESTD string *m_pstrPasswd

Private Func

MemberDescription
TENisAuthenticationContext()The TENisAuthenticationContext constructor is the default class constructor.
TENisAuthenticationContext(const TENisAuthenticationContext &)The TENisAuthenticationContext constructor copies a TENisAuthenticationContextCopy object.

Public Member Functions

MemberDescription
~TENisAuthenticationContext()The TENisAuthenticationContext destructor is the class destructor.
void setUser(const _TESTD string user)The setUser method sets a username.
const _TESTD string getUser() constThe 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() constThe clone method clones a TENisAuthenticationContext object.

Static Public Member Functions

MemberDescription
_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

ParameterDescription
userA 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

ParameterDescription
passwdA 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.