#include <HTTPBasicCredentials.h>
|
static const std::string | SCHEME |
| Adds proxy authentication information to the given HTTPRequest.
|
|
This is a utility class for working with HTTP Basic Authentication in HTTPRequest objects.
Definition at line 31 of file HTTPBasicCredentials.h.
◆ HTTPBasicCredentials() [1/5]
Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials |
( |
| ) |
|
◆ HTTPBasicCredentials() [2/5]
Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials |
( |
const std::string & | username, |
|
|
const std::string & | password ) |
◆ HTTPBasicCredentials() [3/5]
Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials |
( |
const HTTPRequest & | request | ) |
|
|
explicit |
◆ HTTPBasicCredentials() [4/5]
Poco::Net::HTTPBasicCredentials::HTTPBasicCredentials |
( |
const std::string & | authInfo | ) |
|
|
explicit |
Creates a HTTPBasicCredentials object with the authentication information from the given request.
Throws a NotAuthenticatedException if the request does not contain basic authentication information.
◆ ~HTTPBasicCredentials()
Poco::Net::HTTPBasicCredentials::~HTTPBasicCredentials |
( |
| ) |
|
◆ HTTPBasicCredentials() [5/5]
Extracts username and password from Basic authentication info by base64-decoding authInfo and splitting the resulting string at the ':' delimiter.
◆ authenticate()
void Poco::Net::HTTPBasicCredentials::authenticate |
( |
HTTPRequest & | request | ) |
const |
Returns true if both username and password are empty, otherwise false.
◆ clear()
void Poco::Net::HTTPBasicCredentials::clear |
( |
| ) |
|
◆ empty()
bool Poco::Net::HTTPBasicCredentials::empty |
( |
| ) |
const |
|
inline |
◆ getPassword()
const std::string & Poco::Net::HTTPBasicCredentials::getPassword |
( |
| ) |
const |
|
inline |
◆ getUsername()
const std::string & Poco::Net::HTTPBasicCredentials::getUsername |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ parseAuthInfo()
void Poco::Net::HTTPBasicCredentials::parseAuthInfo |
( |
const std::string & | authInfo | ) |
|
|
protected |
◆ proxyAuthenticate()
void Poco::Net::HTTPBasicCredentials::proxyAuthenticate |
( |
HTTPRequest & | request | ) |
const |
Adds authentication information to the given HTTPRequest.
◆ setPassword()
void Poco::Net::HTTPBasicCredentials::setPassword |
( |
const std::string & | password | ) |
|
◆ setUsername()
void Poco::Net::HTTPBasicCredentials::setUsername |
( |
const std::string & | username | ) |
|
Clears both username and password.
◆ _password
std::string Poco::Net::HTTPBasicCredentials::_password |
|
private |
◆ _username
std::string Poco::Net::HTTPBasicCredentials::_username |
|
private |
◆ SCHEME
const std::string Poco::Net::HTTPBasicCredentials::SCHEME |
|
static |
The documentation for this class was generated from the following file: