#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. | |
Authorization * | beginAuthorize (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 Authorization * | onAuthorizeCredentials (const Credential &cred, bool &granted) |
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) |
Release authorization operation. | |