Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * user_verifier.cpp - Web request user verifier 00004 * 00005 * Created: Mon Jan 24 18:09:23 2011 00006 * Copyright 2006-2011 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU Library General Public License for more details. 00019 * 00020 * Read the full text in the LICENSE.GPL file in the doc directory. 00021 */ 00022 00023 #include <webview/user_verifier.h> 00024 00025 namespace fawkes { 00026 #if 0 /* just to make Emacs auto-indent happy */ 00027 } 00028 #endif 00029 00030 /** @class WebUserVerifier <webview/user_verifier.h> 00031 * Interface for user verification. 00032 * Implementations of this class will verify users for access to the webserver. 00033 * Note that the password might be a hash for digest authentication. 00034 * @author Tim Niemueller 00035 * 00036 * @fn bool WebUserVerifier::verify_user(const char *user, const char *password) throw() 00037 * Verify a user. 00038 * Check if the passed credentials are valid. 00039 * @param user user name 00040 * @param password user supplied password, might be a hash. 00041 * @return true, if the credentials are valid and the user should be allowed 00042 * access, false otherwise. 00043 */ 00044 00045 /** Virtual empty destructor. */ 00046 WebUserVerifier::~WebUserVerifier() 00047 { 00048 } 00049 00050 00051 } // end namespace fawkes