#include <Pt/Http/Authorizer.h>
Server side basic HTTP authorization.
Inherits Authorizer.
Inherited by BasicUserListAuthorizer.
Public Member Functions | |
BasicAuthorizer (const std::string &realm) | |
Construct for a realm. | |
BasicAuthorizer (const char *realm) | |
Construct for a realm. | |
~BasicAuthorizer () | |
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 * | onAuthorizeCredentials (const Credential &cred, bool &granted)=0 |
Begin authorization using client credentials. | |
virtual Authorization * | onBeginAuthorize (const Request &req, Reply &reply, bool &granted) |
Begin authorization for a reply. | |
virtual void | onReleaseAuthorization (Authorization *auth)=0 |
Release authorization operation. | |