BasicUserListAuthorizer Class Reference

#include <Pt/Http/Authorizer.h>

Server side basic HTTP authorization.

Inherits BasicAuthorizer.

Public Member Functions

 BasicUserListAuthorizer (const std::string &realm)
 Construct for a realm.
 
 BasicUserListAuthorizer (const char *realm)
 Construct for a realm.
 
 ~BasicUserListAuthorizer ()
 Destructor.
 
AuthorizationbeginAuthorize (const Request &req, Reply &reply, bool &granted)
 Begin authorization for a reply.
 
void cancelAuthorization (Authorization *auth)
 Cancel a running authorization.
 
void clear ()
 Clears all content.
 
bool endAuthorization (Authorization *auth)
 End authorization.
 
const std::string & realm () const
 Returns the realm.
 
void removeUser (const std::string &user)
 Remove user from list.
 
void removeUser (const char *user)
 Remove user from list.
 
void setUser (const Credential &cred)
 Set user credential.
 

Protected Member Functions

virtual AuthorizationonAuthorizeCredentials (const Credential &cred, bool &granted)
 Begin authorization using client credentials.
 
virtual AuthorizationonBeginAuthorize (const Request &req, Reply &reply, bool &granted)
 Begin authorization for a reply.
 
virtual void onReleaseAuthorization (Authorization *auth)
 Release authorization operation.