KIOSlave
#include <httpauthentication.h>
Definition at line 37 of file httpauthentication.h.
◆ KAbstractHttpAuthentication()
KAbstractHttpAuthentication::KAbstractHttpAuthentication |
( |
KConfigGroup * |
config = 0 | ) |
|
◆ ~KAbstractHttpAuthentication()
KAbstractHttpAuthentication::~KAbstractHttpAuthentication |
( |
| ) |
|
|
virtual |
◆ authDataToCache()
virtual QByteArray KAbstractHttpAuthentication::authDataToCache |
( |
| ) |
const |
|
inlineprotectedvirtual |
◆ authInfoBoilerplate()
void KAbstractHttpAuthentication::authInfoBoilerplate |
( |
KIO::AuthInfo * |
a | ) |
const |
|
protected |
◆ bestOffer()
QByteArray KAbstractHttpAuthentication::bestOffer |
( |
const QList< QByteArray > & |
offers | ) |
|
|
static |
Choose the best authentication mechanism from the offered ones.
This will return the most secure mechanism from the list of mechanisms retuned by the server.
Definition at line 227 of file httpauthentication.cpp.
◆ fillKioAuthInfo()
virtual void KAbstractHttpAuthentication::fillKioAuthInfo |
( |
KIO::AuthInfo * |
ai | ) |
const |
|
pure virtual |
◆ forceDisconnect()
bool KAbstractHttpAuthentication::forceDisconnect |
( |
| ) |
const |
|
inline |
force disconnection because the authentication method requires it
Definition at line 125 of file httpauthentication.h.
◆ forceKeepAlive()
bool KAbstractHttpAuthentication::forceKeepAlive |
( |
| ) |
const |
|
inline |
force keep-alive connection because the authentication method requires it
Definition at line 121 of file httpauthentication.h.
◆ generateResponse()
virtual void KAbstractHttpAuthentication::generateResponse |
( |
const QString & |
user, |
|
|
const QString & |
password |
|
) |
| |
|
pure virtual |
◆ generateResponseCommon()
void KAbstractHttpAuthentication::generateResponseCommon |
( |
const QString & |
user, |
|
|
const QString & |
password |
|
) |
| |
|
protected |
◆ headerFragment()
QByteArray KAbstractHttpAuthentication::headerFragment |
( |
| ) |
const |
|
inline |
insert this into the next request header after "Authorization: " or "Proxy-Authorization: "
Definition at line 131 of file httpauthentication.h.
◆ isError()
bool KAbstractHttpAuthentication::isError |
( |
| ) |
const |
|
inline |
◆ needCredentials()
bool KAbstractHttpAuthentication::needCredentials |
( |
| ) |
const |
|
inline |
return value updated by setChallenge()
if this is false user and password passed to generateResponse will be ignored and may be empty.
Definition at line 85 of file httpauthentication.h.
◆ newAuth()
Returns authentication object instance appropriate for offer
.
- Parameters
-
offer | the header from which an authentication object is created. |
config | the config object to read stored authentication information. |
Definition at line 266 of file httpauthentication.cpp.
◆ realm()
QString KAbstractHttpAuthentication::realm |
( |
| ) |
const |
Returns the realm sent by the server.
This is mainly for GUI shown to the user. This is the identification of the protected area on the server (e.g. "Konquis home directory" or "KDE files").
Definition at line 334 of file httpauthentication.cpp.
◆ reset()
void KAbstractHttpAuthentication::reset |
( |
| ) |
|
◆ scheme()
virtual QByteArray KAbstractHttpAuthentication::scheme |
( |
| ) |
const |
|
pure virtual |
◆ setCachePasswordEnabled()
void KAbstractHttpAuthentication::setCachePasswordEnabled |
( |
bool |
enable | ) |
|
|
inline |
◆ setChallenge()
void KAbstractHttpAuthentication::setChallenge |
( |
const QByteArray & |
c, |
|
|
const KUrl & |
resource, |
|
|
const QByteArray & |
httpMethod |
|
) |
| |
|
virtual |
◆ splitOffers()
QList< QByteArray > KAbstractHttpAuthentication::splitOffers |
( |
const QList< QByteArray > & |
offers | ) |
|
|
static |
Split all headers containing multiple authentication offers.
- Parameters
-
offers | the offers from multiple HTTP authentication header lines. |
- Returns
- a list where each entry contains only a single offer
Definition at line 284 of file httpauthentication.cpp.
◆ supportsPathMatching()
virtual bool KAbstractHttpAuthentication::supportsPathMatching |
( |
| ) |
const |
|
inlinevirtual |
◆ wasFinalStage()
bool KAbstractHttpAuthentication::wasFinalStage |
( |
| ) |
const |
|
inline |
returns true when the final stage of authentication is reached.
Unless the authentication scheme requires multiple stages like NTLM this function will always return true.
Definition at line 104 of file httpauthentication.h.
◆ m_challenge
QList<QByteArray> KAbstractHttpAuthentication::m_challenge |
|
protected |
◆ m_challengeText
QByteArray KAbstractHttpAuthentication::m_challengeText |
|
protected |
◆ m_config
◆ m_finalAuthStage
bool KAbstractHttpAuthentication::m_finalAuthStage |
|
protected |
◆ m_forceDisconnect
bool KAbstractHttpAuthentication::m_forceDisconnect |
|
protected |
◆ m_forceKeepAlive
bool KAbstractHttpAuthentication::m_forceKeepAlive |
|
protected |
◆ m_headerFragment
QByteArray KAbstractHttpAuthentication::m_headerFragment |
|
protected |
◆ m_httpMethod
QByteArray KAbstractHttpAuthentication::m_httpMethod |
|
protected |
◆ m_isError
bool KAbstractHttpAuthentication::m_isError |
|
protected |
◆ m_keepPassword
bool KAbstractHttpAuthentication::m_keepPassword |
|
protected |
◆ m_needCredentials
bool KAbstractHttpAuthentication::m_needCredentials |
|
protected |
◆ m_password
QString KAbstractHttpAuthentication::m_password |
|
protected |
◆ m_resource
KUrl KAbstractHttpAuthentication::m_resource |
|
protected |
◆ m_scheme
QByteArray KAbstractHttpAuthentication::m_scheme |
|
protected |
◆ m_username
QString KAbstractHttpAuthentication::m_username |
|
protected |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.