Skip to main content

ERUCES::TECookieAuthenticationContext

#include <teauthcookiectx.h>

The TECookieAuthenticationContext class is used to manage Token authentication.

The TECookieAuthenticationContext represents Token authentication context in which user is authenticated by presented Token. A Token can be obtained through other type of authentications such as Native authentication, Kerberos authentication, LDAP authentication, etc.This class is derived from TEAuthenticationContext class.

Inheritance

Private Func

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

Public Member Functions

MemberDescription
~TECookieAuthenticationContext()The TECookieAuthenticationContext destructor is the class destructor.
void setCookie(const _TESTD string &cookie, bool decode=true)The setCookie method sets a Token.
te_oid authenticate()The authenticate method performs authentication.
TEObject * clone() constThe clone method clones the TEUserAuthenticationContext object.

Static Public Member Functions

MemberDescription
_TESTD auto_ptr< TECookieAuthenticationContext > getInstance()The getInstance method creates a new TEUserAuthenticationContext object.

Member Function Documentation

TECookieAuthenticationContext()

The TECookieAuthenticationContext constructor is the default class constructor.

TECookieAuthenticationContext(const TECookieAuthenticationContext &)

The TECookieAuthenticationContext constructor copies a TECookieAuthenticationContext object.

~TECookieAuthenticationContext()

The TECookieAuthenticationContext destructor is the class destructor.

The setCookie method sets a Token.

Parameters

ParameterDescription
cookieA string representing a Token.
decodeA boolean true means the Token needs Base64 Decode.

te_oid authenticate()

The authenticate method performs authentication.

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

TEObject * clone() const

The clone method clones the TEUserAuthenticationContext object.

Returns: Returns a cloned TEUserAuthenticationContext object.

_TESTD auto_ptr< TECookieAuthenticationContext > getInstance()

The getInstance method creates a new TEUserAuthenticationContext object.

Returns: Returns a smart pointer to a TEUserAuthenticationContext object.