Authorization Class Referenceabstract

#include <Pt/Http/Authorizer.h>

HTTP authorization operation.

Inherits NonCopyable.

Public Member Functions

virtual ~Authorization ()
 Destructor.
 
void beginAuthorize (const Request &req, Reply &reply)
 Begin authorization for a reply.
 
bool endAuthorize ()
 End authorization for a reply.
 
Signal< Authorization & > & finished ()
 Notifies that authorization is finished.
 

Protected Member Functions

 Authorization ()
 Default constructor.
 
virtual void onBeginAuthorize (const Request &req, Reply &reply)=0
 Begin authorization for a reply.
 
virtual bool onEndAuthorize ()=0
 End authorization for a reply.
 
void setReady ()
 Set authorization to ready state.