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

Detailed Description

Abstract base class implemented by BasicAuthUser, FormAuthUser and DigestAuthUser.

Please see the User Authentication documentation for more information.

#include <AuthenticatedUser.h>

Public Member Functions

HttpSessiongetSession ()
 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 AuthenticatedUserget (HttpRequest *request)
 Find the authenticated user without creating a session. More...
 
static AuthenticatedUserget (HttpSession *session)
 Find the authenticated-user session attribute. More...
 
static AuthenticatedUsergetAnonymous ()
 Access the shared anonymous user. More...