29 #ifndef Pt_Http_Authorizer_h
30 #define Pt_Http_Authorizer_h
32 #include <Pt/Http/Api.h>
33 #include <Pt/Http/Credentials.h>
34 #include <Pt/System/Mutex.h>
35 #include <Pt/Atomicity.h>
36 #include <Pt/Signal.h>
79 virtual void onBeginAuthorize(
const Request& req,
Reply& reply) = 0;
83 virtual bool onEndAuthorize() = 0;
108 const std::string& realm()
const;
129 virtual void onReleaseAuthorization(
Authorization* auth) = 0;
185 void removeUser(
const std::string& user);
189 void removeUser(
const char* user);
202 std::map<std::string, std::string> _passwd;
209 #endif // Pt_Http_Authorizer_h
Server side authorization.
Definition: Authorizer.h:91
HTTP request message.
Definition: Request.h:43
Atomic integers to be used with atomicity functions.
Definition: Atomicity.h:50
Protects derived classes from being copied.
Definition: NonCopyable.h:54
HTTP authorization operation.
Definition: Authorizer.h:49
Credentials for authorization and authentication.
Definition: Credentials.h:42
Server side basic HTTP authorization.
Definition: Authorizer.h:164
Server side basic HTTP authorization.
Definition: Authorizer.h:138
HTTP reply message.
Definition: Reply.h:43
Multicast Signal to call multiple slots.
Definition: Signal.h:109
Mutual exclusion device.
Definition: Mutex.h:48