Skip to main content

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

Static Public Attributes

TypeNameDescription
_TESTD stringCLASSNAME

Public Member Functions

MemberDescription
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() constThe getPrincipalName method gets a principal name.
void setUserName(const _TESTD string &name)The setUserName method sets a username.
const _TESTD string getUserName() constThe 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() constThe getClassName method gets a TEUserAndPasswordInfo object's class name.
TEObject * clone() constThe 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

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

ParameterDescription
passwdA string representing the new password to be set.
logonPasswdA 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.