BasicUserListAuthorizer Class Reference

#include <Pt/Http/Authorizer.h>

Server-side basic HTTP authorization against a user list.

Inherits BasicAuthorizer.

Public Member Functions

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

Protected Member Functions

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