Skip to main content

ERUCES::TEWinAuthenticationContext

#include <teauthwinctx.h>

The TEWinAuthenticationContext class is used to manage Windows user authentication.

The TEWinAuthenticationContext represents a Windows-based user authentication context in which a user is authenticated during the Windows system authentication process. This class is derived from the TEAuthenticationContext class.

Inheritance

Private Func

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

Public Member Functions

MemberDescription
~TEWinAuthenticationContext()The TEWinAuthenticationContext destructor is the class destructor.
te_oid authenticate()The authenticate method authenticates a principal.
TEObject * clone() constThe clone method clones a TEWinAuthenticationContext object.

Static Public Member Functions

MemberDescription
_TESTD auto_ptr< TEWinAuthenticationContext > getInstance()The getInstance method creates a new TEWinAuthenticationContext object.
void getCurrentUserName(_TESTD string &name)The getCurrentUserName retrieves the current user name.

Member Function Documentation

TEWinAuthenticationContext()

The TEWinAuthenticationContext constructor is the default class constructor.

TEWinAuthenticationContext(const TEWinAuthenticationContext &)

The TEWinAuthenticationContext constructor copies a TEWinAuthenticationContext object.

~TEWinAuthenticationContext()

The TEWinAuthenticationContext destructor is the class destructor.

te_oid authenticate()

The authenticate method authenticates a principal.

Returns: Returns a long integer representing the principal ID of the authenticated principal.

TEObject * clone() const

The clone method clones a TEWinAuthenticationContext object.

Returns: Returns a cloned TEWinAuthenticationContext object.

_TESTD auto_ptr< TEWinAuthenticationContext > getInstance()

The getInstance method creates a new TEWinAuthenticationContext object.

Returns: Returns a smart pointer to a TEWinAuthenticationContext object.

void getCurrentUserName(_TESTD string &name)

The getCurrentUserName retrieves the current user name.