![]() |
Kea 3.0.0
|
Represents a basic HTTP authentication. More...
#include <basic_auth.h>
Public Member Functions | |
| BasicHttpAuth (const std::string &secret) | |
| Constructor. | |
| BasicHttpAuth (const std::string &user, const std::string &password) | |
| Constructor. | |
| const std::string & | getCredential () const |
| Returns the credential (base64 of the UTF-8 secret). | |
| const std::string & | getSecret () const |
| Returns the secret. | |
Represents a basic HTTP authentication.
It computes the credential from user and password.
Definition at line 21 of file basic_auth.h.
| isc::http::BasicHttpAuth::BasicHttpAuth | ( | const std::string & | user, |
| const std::string & | password ) |
Constructor.
| user | User id |
| password | Password |
| BadValue | if user contains the ':' character. |
Definition at line 19 of file basic_auth.cc.
| isc::http::BasicHttpAuth::BasicHttpAuth | ( | const std::string & | secret | ) |
Constructor.
| secret | user:password string |
| BadValue | if secret does not contain the ':' character. |
Definition at line 29 of file basic_auth.cc.
|
inline |
Returns the credential (base64 of the UTF-8 secret).
Definition at line 43 of file basic_auth.h.
Referenced by isc::http::BasicHttpAuthConfig::add().
|
inline |
Returns the secret.
Definition at line 38 of file basic_auth.h.