Kea
1.9.9-git
|
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. More... | |
const std::string & | getPassword () const |
Returns the password. More... | |
const std::string & | getUser () const |
Returns the user id. 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... | |
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.
user | User id |
password | Password |
user_context | Optional user context |
Definition at line 22 of file basic_auth_config.cc.
References isc::data::UserContext::setContext().
|
inline |
Returns the password.
Definition at line 45 of file basic_auth_config.h.
|
inline |
Returns the user id.
Definition at line 40 of file basic_auth_config.h.
|
virtual |
Unparses basic HTTP authentication client configuration.
Implements isc::data::CfgToElement.
Definition at line 32 of file basic_auth_config.cc.
References isc::data::UserContext::contextToElement().