Barracuda Application Server C/C++ Reference
NO
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 session object. More...
 
const char * getPassword ()
 Returns the user's password.
 
const char * getName ()
 Returns the user's name.
 
void logout (bool all=false)
 Logout user and terminate the session object. More...
 
AuthenticatedUserType getType ()
 Returns the authenticator type that was used to authenticate this user. More...
 

Static Public Member Functions

static AuthenticatedUserget (HttpRequest *request)
 Returns a pointer to an instance of class AuthenticatedUser if a session object exists and if the user is authenticated, otherwise NULL is returned. More...
 
static AuthenticatedUserget (HttpSession *session)
 Returns a pointer to an instance of class AuthenticatedUser if the user is authenticated, otherwise NULL is returned. More...
 
static AuthenticatedUsergetAnonymous ()
 non public