![]() |
Kea 3.0.0
|
Basic HTTP authentication client configuration. More...
#include <basic_auth_config.h>
Public Member Functions | |
| BasicHttpAuthClient (const std::string &user, const std::string &password, const isc::data::ConstElementPtr &user_context) | |
| Constructor (legacy). | |
| 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. | |
| const std::string & | getPassword () const |
| Returns the password. | |
| const std::string & | getPasswordFile () const |
| Returns the password file. | |
| bool | getPasswordFileOnly () const |
| Returns the password file only flag. | |
| const std::string & | getUser () const |
| Returns the user id. | |
| const std::string & | getUserFile () const |
| Returns the user id file. | |
| virtual isc::data::ElementPtr | toElement () const |
| Unparses basic HTTP authentication client configuration. | |
| Public Member Functions inherited from isc::data::UserContext | |
| void | contextToElement (data::ElementPtr map) const |
| Merge unparse a user_context object. | |
| data::ConstElementPtr | getContext () const |
| Returns const pointer to the user context. | |
| void | setContext (const data::ConstElementPtr &ctx) |
| Sets user context. | |
| Public Member Functions inherited from isc::data::CfgToElement | |
| virtual | ~CfgToElement () |
| Destructor. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from isc::data::UserContext | |
| static data::ElementPtr | toElement (data::ConstElementPtr map) |
| Copy an Element map. | |
| Protected Attributes inherited from isc::data::UserContext | |
| data::ConstElementPtr | user_context_ |
| Pointer to the user context (may be NULL) | |
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 24 of file basic_auth_config.cc.
References isc::data::UserContext::setContext().
| 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 34 of file basic_auth_config.cc.
References isc::data::UserContext::setContext().
|
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 48 of file basic_auth_config.cc.
References isc::data::UserContext::contextToElement(), Element::create(), and Element::createMap().