#include <Pt/Http/Authorizer.h>
Server side authorization.
Inherits NonCopyable.
Inherited by BasicAuthorizer.
Public Member Functions | |
Authorizer (const std::string &realm) | |
Construct for a realm. | |
Authorizer (const char *realm) | |
Construct for a realm. | |
virtual | ~Authorizer () |
Destructor. | |
Authorization * | beginAuthorize (const Request &req, Reply &reply, bool &granted) |
Begin authorization for a reply. | |
void | cancelAuthorization (Authorization *auth) |
Cancel a running authorization. | |
bool | endAuthorization (Authorization *auth) |
End authorization. | |
const std::string & | realm () const |
Returns the realm. | |
Protected Member Functions | |
virtual Authorization * | onBeginAuthorize (const Request &req, Reply &reply, bool &granted)=0 |
Begin authorization for a reply. | |
virtual void | onReleaseAuthorization (Authorization *auth)=0 |
Release authorization operation. | |