Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces

Abstract base class implemented by BasicAuthUser, FormAuthUser and DigestAuthUser. More...

#include <AuthenticatedUser.h>

Public Member Functions

HttpSession * getSession ()
 Get the containing session. More...
 
const char * getPassword ()
 Access the stored credential representation. More...
 
const char * getName ()
 Access the authenticated name. More...
 
void logout (bool all=false)
 Log out and terminate the associated session or sessions. More...
 
AuthenticatedUserType getType ()
 Identify the authenticator that created this user. More...
 

Static Public Member Functions

static AuthenticatedUser * get (HttpRequest *request)
 Find the authenticated user without creating a session. More...
 
static AuthenticatedUser * get (HttpSession *session)
 Find the authenticated-user session attribute. More...
 
static AuthenticatedUser * getAnonymous ()
 Access the shared anonymous user. More...
 

Usage and lifecycle

Abstract base class implemented by BasicAuthUser, FormAuthUser and DigestAuthUser.

Please see the User Authentication documentation for more information.