ffead.server.doc
FileAuthController.h
1 /*
2  * FileAuthController.h
3  *
4  * Created on: Nov 23, 2010
5  * Author: sumeet
6  */
7 
8 #ifndef FILEAUTHCONTROLLER_H_
9 #define FILEAUTHCONTROLLER_H_
10 #include "AuthController.h"
11 #include "fstream"
12 
14 {
15  string filename;
16  string delimiter;
17 public:
18  string treat_password(string);
19  FileAuthController(string,string);
20  virtual ~FileAuthController();
21  bool authenticate(string,string);
22  bool authenticateSecurity(string,string);
23  bool isInitialized();
24  bool authenticate(map<string,string>){return false;};
25  bool handle(HttpRequest* req,HttpResponse* res){return false;};
26  bool getPassword(string username,string &passwd);
27  string getUserRole(string);
28  string get(string username, int pos);
29 };
30 
31 #endif /* FILEAUTHCONTROLLER_H_ */