#include <HTTPNTLMCredentials.h>
|
| HTTPNTLMCredentials () |
|
| HTTPNTLMCredentials (const std::string &username, const std::string &password) |
| Creates an empty HTTPNTLMCredentials object.
|
|
| HTTPNTLMCredentials (const std::string &username, const std::string &password, const std::string &host) |
| Creates a HTTPNTLMCredentials object with the given username and password.
|
|
| ~HTTPNTLMCredentials () |
| Creates a HTTPNTLMCredentials object with the given username, password and target host.
|
|
void | reset () |
| Destroys the HTTPNTLMCredentials.
|
|
void | clear () |
|
void | setUsername (const std::string &username) |
| Clears username, password and host.
|
|
const std::string & | getUsername () const |
| Sets the username.
|
|
void | setPassword (const std::string &password) |
| Returns the username.
|
|
const std::string & | getPassword () const |
| Sets the password.
|
|
bool | empty () const |
| Returns the password.
|
|
void | setHost (const std::string &host) |
| Returns true if both username and password are empty, otherwise false.
|
|
const std::string & | getHost () const |
|
void | authenticate (HTTPRequest &request, const HTTPResponse &response) |
| Returns the target host.
|
|
void | authenticate (HTTPRequest &request, const std::string &ntlmChallengeBase64) |
|
void | updateAuthInfo (HTTPRequest &request) |
|
void | proxyAuthenticate (HTTPRequest &request, const HTTPResponse &response) |
|
void | proxyAuthenticate (HTTPRequest &request, const std::string &ntlmChallengeBase64) |
|
void | updateProxyAuthInfo (HTTPRequest &request) |
|
|
static const std::string | SCHEME |
|
This is a utility class for working with HTTP NTLMv2 Authentication in HTTPRequest objects.
Definition at line 34 of file HTTPNTLMCredentials.h.
◆ HTTPNTLMCredentials() [1/4]
Poco::Net::HTTPNTLMCredentials::HTTPNTLMCredentials |
( |
| ) |
|
◆ HTTPNTLMCredentials() [2/4]
Poco::Net::HTTPNTLMCredentials::HTTPNTLMCredentials |
( |
const std::string & | username, |
|
|
const std::string & | password ) |
◆ HTTPNTLMCredentials() [3/4]
Poco::Net::HTTPNTLMCredentials::HTTPNTLMCredentials |
( |
const std::string & | username, |
|
|
const std::string & | password, |
|
|
const std::string & | host ) |
◆ ~HTTPNTLMCredentials()
Poco::Net::HTTPNTLMCredentials::~HTTPNTLMCredentials |
( |
| ) |
|
◆ HTTPNTLMCredentials() [4/4]
◆ authenticate() [1/2]
◆ authenticate() [2/2]
void Poco::Net::HTTPNTLMCredentials::authenticate |
( |
HTTPRequest & | request, |
|
|
const std::string & | ntlmChallengeBase64 ) |
Parses WWW-Authenticate header of the HTTPResponse, initializes internal state, and adds authentication information to the given HTTPRequest.
◆ clear()
void Poco::Net::HTTPNTLMCredentials::clear |
( |
| ) |
|
◆ createNTLMMessage()
std::string Poco::Net::HTTPNTLMCredentials::createNTLMMessage |
( |
const std::string & | ntlmChallengeBase64 | ) |
|
|
private |
◆ empty()
bool Poco::Net::HTTPNTLMCredentials::empty |
( |
| ) |
const |
|
inline |
◆ getHost()
const std::string & Poco::Net::HTTPNTLMCredentials::getHost |
( |
| ) |
const |
|
inline |
Sets the target host.
Used for SSPI-based NTLM authentication only.
Definition at line 147 of file HTTPNTLMCredentials.h.
◆ getPassword()
const std::string & Poco::Net::HTTPNTLMCredentials::getPassword |
( |
| ) |
const |
|
inline |
◆ getUsername()
const std::string & Poco::Net::HTTPNTLMCredentials::getUsername |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ proxyAuthenticate() [1/2]
Updates internal state and adds authentication information to the given HTTPRequest.
◆ proxyAuthenticate() [2/2]
void Poco::Net::HTTPNTLMCredentials::proxyAuthenticate |
( |
HTTPRequest & | request, |
|
|
const std::string & | ntlmChallengeBase64 ) |
Parses Proxy-Authenticate header of the HTTPResponse, initializes internal state, and adds proxy authentication information to the given HTTPRequest.
◆ reset()
void Poco::Net::HTTPNTLMCredentials::reset |
( |
| ) |
|
◆ setHost()
void Poco::Net::HTTPNTLMCredentials::setHost |
( |
const std::string & | host | ) |
|
Returns true if both username and password are empty, otherwise false.
◆ setPassword()
void Poco::Net::HTTPNTLMCredentials::setPassword |
( |
const std::string & | password | ) |
|
◆ setUsername()
void Poco::Net::HTTPNTLMCredentials::setUsername |
( |
const std::string & | username | ) |
|
Clears username, password and host.
◆ updateAuthInfo()
void Poco::Net::HTTPNTLMCredentials::updateAuthInfo |
( |
HTTPRequest & | request | ) |
|
Initializes internal state according to information from the ntlmChallengeBase64, and adds authentication information to the given HTTPRequest.
Throws InvalidArgumentException if responseAuthParams is invalid.
◆ updateProxyAuthInfo()
void Poco::Net::HTTPNTLMCredentials::updateProxyAuthInfo |
( |
HTTPRequest & | request | ) |
|
Initializes internal state according to information from the HTTPAuthenticationParams of the response, and adds proxy authentication information to the given HTTPRequest.
Throws InvalidArgumentException if HTTPAuthenticationParams is invalid or some required parameter is missing. Throws NotImplementedException in case of unsupported digest algorithm or quality of protection method.
◆ useSSPINTLM()
bool Poco::Net::HTTPNTLMCredentials::useSSPINTLM |
( |
| ) |
const |
|
inlineprivate |
◆ _host
std::string Poco::Net::HTTPNTLMCredentials::_host |
|
private |
◆ _password
std::string Poco::Net::HTTPNTLMCredentials::_password |
|
private |
◆ _pNTLMContext
◆ _username
std::string Poco::Net::HTTPNTLMCredentials::_username |
|
private |
◆ SCHEME
const std::string Poco::Net::HTTPNTLMCredentials::SCHEME |
|
static |
The documentation for this class was generated from the following file: