![]() |
Kea 2.2.0
|
Basic HTTP authentication client configuration. More...
#include <basic_auth_config.h>
Inheritance diagram for isc::http::BasicHttpAuthClient:Public Member Functions | |
| BasicHttpAuthClient (const std::string &user, const std::string &password, const isc::data::ConstElementPtr &user_context) | |
| Constructor (legacy). More... | |
| BasicHttpAuthClient (const std::string &user, const std::string &user_file, const std::string &password, const std::string &password_file, bool password_file_only, const isc::data::ConstElementPtr &user_context) | |
| Constructor. More... | |
| const std::string & | getPassword () const |
| Returns the password. More... | |
| const std::string & | getPasswordFile () const |
| Returns the password file. More... | |
| bool | getPasswordFileOnly () const |
| Returns the password file only flag. More... | |
| const std::string & | getUser () const |
| Returns the user id. More... | |
| const std::string & | getUserFile () const |
| Returns the user id file. More... | |
| virtual isc::data::ElementPtr | toElement () const |
| Unparses basic HTTP authentication client configuration. More... | |
Public Member Functions inherited from isc::data::UserContext | |
| void | contextToElement (data::ElementPtr map) const |
| Merge unparse a user_context object. More... | |
| data::ConstElementPtr | getContext () const |
| Returns const pointer to the user context. More... | |
| void | setContext (const data::ConstElementPtr &ctx) |
| Sets user context. More... | |
Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. More... | |
| virtual isc::data::ElementPtr | toElement () const =0 |
| Unparse a configuration object. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::data::UserContext | |
| static data::ElementPtr | toElement (data::ConstElementPtr map) |
| Copy an Element map. More... | |
Protected Attributes inherited from isc::data::UserContext | |
| data::ConstElementPtr | user_context_ |
| Pointer to the user context (may be NULL) More... | |
Basic HTTP authentication client configuration.
Definition at line 26 of file basic_auth_config.h.
| isc::http::BasicHttpAuthClient::BasicHttpAuthClient | ( | const std::string & | user, |
| const std::string & | password, | ||
| const isc::data::ConstElementPtr & | user_context | ||
| ) |
Constructor (legacy).
| user | User id. |
| password | Password. |
| user_context | Optional user context. |
Definition at line 23 of file basic_auth_config.cc.
References isc::data::UserContext::setContext().
Here is the call graph for this function:| isc::http::BasicHttpAuthClient::BasicHttpAuthClient | ( | const std::string & | user, |
| const std::string & | user_file, | ||
| const std::string & | password, | ||
| const std::string & | password_file, | ||
| bool | password_file_only, | ||
| const isc::data::ConstElementPtr & | user_context | ||
| ) |
Constructor.
| user | User id. |
| user_file | File with the user id. |
| password | Password. |
| password_file | File with the password. |
| password_file_only | Flag true if the password file includes the user id too. |
| user_context | Optional user context. |
Definition at line 33 of file basic_auth_config.cc.
References isc::data::UserContext::setContext().
Here is the call graph for this function:
|
inline |
|
inline |
Returns the password file.
Definition at line 79 of file basic_auth_config.h.
|
inline |
Returns the password file only flag.
Definition at line 86 of file basic_auth_config.h.
|
inline |
|
inline |
Returns the user id file.
Definition at line 65 of file basic_auth_config.h.
|
virtual |
Unparses basic HTTP authentication client configuration.
Implements isc::data::CfgToElement.
Definition at line 47 of file basic_auth_config.cc.
References isc::data::UserContext::contextToElement().
Here is the call graph for this function: