Skip to main content

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

Static Public Attributes

TypeNameDescription
_TESTD stringCLASSNAME

Public Member Functions

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

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

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