Rudiments
Public Member Functions | List of all members
mvcsecurity Class Referenceabstract

#include <mvc.h>

Inherits object.

Inherited by httpbasicsecurity.

Public Member Functions

 mvcsecurity ()
 
virtual ~mvcsecurity ()
 
virtual const chargetUserName ()=0
 
- Public Member Functions inherited from object
virtual ~object ()
 

Detailed Description

The mvcsecurity class provides a base class for obtaining the current user.

This class cannot be used directly, rather it must be overridden by a child class that can fetch the current user from a specific security framework, for example, the httpbasicsecurity class can fetch the current user from the HTTP Basic Authentication framework.

Constructor & Destructor Documentation

◆ mvcsecurity()

mvcsecurity::mvcsecurity ( )
inline

Creates an instance of the mvcsecurity class.

◆ ~mvcsecurity()

virtual mvcsecurity::~mvcsecurity ( )
inlinevirtual

Deletes this instance of the mvcsecurity class.

Member Function Documentation

◆ getUserName()

virtual const char * mvcsecurity::getUserName ( )
pure virtual

Defines a pure-virtual method for obtaining the user name. Must be overridden by a child class.

Implemented in httpbasicsecurity.