![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qnetworkaccessauthenticationmanager_p.h>
Public Member Functions | |
QNetworkAccessAuthenticationManager () | |
void | cacheCredentials (const QUrl &url, const QAuthenticator *auth) |
QNetworkAuthenticationCredential | fetchCachedCredentials (const QUrl &url, const QAuthenticator *auth=nullptr) |
Fetch the credential data from the credential cache. | |
void | cacheProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth) |
QNetworkAuthenticationCredential | fetchCachedProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth=nullptr) |
void | clearCache () |
Protected Attributes | |
QNetworkAccessCache | authenticationCache |
QMutex | mutex |
Definition at line 49 of file qnetworkaccessauthenticationmanager_p.h.
|
inline |
Definition at line 52 of file qnetworkaccessauthenticationmanager_p.h.
void QNetworkAccessAuthenticationManager::cacheCredentials | ( | const QUrl & | url, |
const QAuthenticator * | auth ) |
Definition at line 193 of file qnetworkaccessauthenticationmanager.cpp.
void QNetworkAccessAuthenticationManager::cacheProxyCredentials | ( | const QNetworkProxy & | proxy, |
const QAuthenticator * | auth ) |
Definition at line 115 of file qnetworkaccessauthenticationmanager.cpp.
void QNetworkAccessAuthenticationManager::clearCache | ( | ) |
Definition at line 266 of file qnetworkaccessauthenticationmanager.cpp.
QNetworkAuthenticationCredential QNetworkAccessAuthenticationManager::fetchCachedCredentials | ( | const QUrl & | url, |
const QAuthenticator * | authentication = nullptr ) |
Fetch the credential data from the credential cache.
If auth is 0 (as it is when called from createRequest()), this will try to look up with an empty realm. That fails in most cases for HTTP (because the realm is seldom empty for HTTP challenges). In any case, QHttpNetworkConnection never sends the credentials on the first attempt: it needs to find out what authentication methods the server supports.
For FTP, realm is always empty.
Definition at line 240 of file qnetworkaccessauthenticationmanager.cpp.
QNetworkAuthenticationCredential QNetworkAccessAuthenticationManager::fetchCachedProxyCredentials | ( | const QNetworkProxy & | proxy, |
const QAuthenticator * | auth = nullptr ) |
Definition at line 159 of file qnetworkaccessauthenticationmanager.cpp.
References QNetworkAuthenticationCredential::isNull().
|
protected |
Definition at line 67 of file qnetworkaccessauthenticationmanager_p.h.
|
protected |
Definition at line 68 of file qnetworkaccessauthenticationmanager_p.h.