Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QNetworkAuthenticationCache Class Reference
+ Inheritance diagram for QNetworkAuthenticationCache:
+ Collaboration diagram for QNetworkAuthenticationCache:

Public Member Functions

 QNetworkAuthenticationCache ()
 
iterator findClosestMatch (const QString &domain)
 
void insert (const QString &domain, const QString &user, const QString &password)
 
virtual void dispose () override
 
- Public Member Functions inherited from QNetworkAccessCache::CacheableObject
 CacheableObject ()
 
virtual ~CacheableObject ()
 
QByteArray cacheKey () const
 

Additional Inherited Members

- Protected Member Functions inherited from QNetworkAccessCache::CacheableObject
void setExpires (bool enable)
 
void setShareable (bool enable)
 

Detailed Description

Definition at line 20 of file qnetworkaccessauthenticationmanager.cpp.

Constructor & Destructor Documentation

◆ QNetworkAuthenticationCache()

QNetworkAuthenticationCache::QNetworkAuthenticationCache ( )
inline

Definition at line 24 of file qnetworkaccessauthenticationmanager.cpp.

References QList< QNetworkAuthenticationCredential >::reserve(), QNetworkAccessCache::CacheableObject::setExpires(), and QNetworkAccessCache::CacheableObject::setShareable().

+ Here is the call graph for this function:

Member Function Documentation

◆ dispose()

virtual void QNetworkAuthenticationCache::dispose ( )
inlineoverridevirtual

◆ findClosestMatch()

iterator QNetworkAuthenticationCache::findClosestMatch ( const QString & domain)
inline

Definition at line 34 of file qnetworkaccessauthenticationmanager.cpp.

References QList< QNetworkAuthenticationCredential >::begin(), QList< QNetworkAuthenticationCredential >::end(), QList< QNetworkAuthenticationCredential >::isEmpty(), it, and QString::startsWith().

Referenced by QNetworkAccessAuthenticationManager::fetchCachedCredentials(), and insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ insert()

void QNetworkAuthenticationCache::insert ( const QString & domain,
const QString & user,
const QString & password )
inline

Definition at line 44 of file qnetworkaccessauthenticationmanager.cpp.

References closestMatch(), QNetworkAuthenticationCredential::domain, QList< QNetworkAuthenticationCredential >::end(), findClosestMatch(), and QList< T >::insert().

Referenced by QNetworkAccessAuthenticationManager::cacheCredentials(), and QNetworkAccessAuthenticationManager::cacheProxyCredentials().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: