BasicAuthorizer Class Referenceabstract

#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.
 
AuthorizationbeginAuthorize (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 AuthorizationonAuthorizeCredentials (const Credential &cred, bool &granted)=0
 Begin authorization using client credentials.
 
virtual AuthorizationonBeginAuthorize (const Request &req, Reply &reply, bool &granted)
 Begin authorization for a reply.
 
virtual void onReleaseAuthorization (Authorization *auth)=0
 Release authorization operation.