Qt 4.8
|
#include <qnetworkaccessauthenticationmanager_p.h>
Public Functions | |
void | cacheCredentials (const QUrl &url, const QAuthenticator *auth) |
void | cacheProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth) |
void | clearCache () |
QNetworkAuthenticationCredential | fetchCachedCredentials (const QUrl &url, const QAuthenticator *auth=0) |
Fetch the credential data from the credential cache. More... | |
QNetworkAuthenticationCredential | fetchCachedProxyCredentials (const QNetworkProxy &proxy, const QAuthenticator *auth=0) |
QNetworkAccessAuthenticationManager () | |
Protected Variables | |
QNetworkAccessCache | authenticationCache |
QMutex | mutex |
Definition at line 83 of file qnetworkaccessauthenticationmanager_p.h.
|
inline |
Definition at line 86 of file qnetworkaccessauthenticationmanager_p.h.
void QNetworkAccessAuthenticationManager::cacheCredentials | ( | const QUrl & | url, |
const QAuthenticator * | auth | ||
) |
Definition at line 228 of file qnetworkaccessauthenticationmanager.cpp.
Referenced by QHttpThreadDelegate::cacheCredentialsSlot().
void QNetworkAccessAuthenticationManager::cacheProxyCredentials | ( | const QNetworkProxy & | proxy, |
const QAuthenticator * | auth | ||
) |
Definition at line 150 of file qnetworkaccessauthenticationmanager.cpp.
void QNetworkAccessAuthenticationManager::clearCache | ( | ) |
Definition at line 299 of file qnetworkaccessauthenticationmanager.cpp.
QNetworkAuthenticationCredential QNetworkAccessAuthenticationManager::fetchCachedCredentials | ( | const QUrl & | url, |
const QAuthenticator * | authentication = 0 |
||
) |
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 273 of file qnetworkaccessauthenticationmanager.cpp.
Referenced by QHttpThreadDelegate::synchronousAuthenticationRequiredSlot().
QNetworkAuthenticationCredential QNetworkAccessAuthenticationManager::fetchCachedProxyCredentials | ( | const QNetworkProxy & | proxy, |
const QAuthenticator * | auth = 0 |
||
) |
Definition at line 194 of file qnetworkaccessauthenticationmanager.cpp.
Referenced by QHttpThreadDelegate::synchronousProxyAuthenticationRequiredSlot().
|
protected |
Definition at line 101 of file qnetworkaccessauthenticationmanager_p.h.
|
protected |
Definition at line 102 of file qnetworkaccessauthenticationmanager_p.h.