KIOSlave
#include <httpauthentication.h>
Definition at line 37 of file httpauthentication.h.
KAbstractHttpAuthentication::KAbstractHttpAuthentication |
( |
KConfigGroup * |
config = 0 | ) |
|
KAbstractHttpAuthentication::~KAbstractHttpAuthentication |
( |
| ) |
|
|
virtual |
virtual QByteArray KAbstractHttpAuthentication::authDataToCache |
( |
| ) |
const |
|
inlineprotectedvirtual |
void KAbstractHttpAuthentication::authInfoBoilerplate |
( |
KIO::AuthInfo * |
a | ) |
const |
|
protected |
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.
virtual void KAbstractHttpAuthentication::fillKioAuthInfo |
( |
KIO::AuthInfo * |
ai | ) |
const |
|
pure virtual |
bool KAbstractHttpAuthentication::forceDisconnect |
( |
| ) |
const |
|
inline |
force disconnection because the authentication method requires it
Definition at line 125 of file httpauthentication.h.
bool KAbstractHttpAuthentication::forceKeepAlive |
( |
| ) |
const |
|
inline |
force keep-alive connection because the authentication method requires it
Definition at line 121 of file httpauthentication.h.
virtual void KAbstractHttpAuthentication::generateResponse |
( |
const QString & |
user, |
|
|
const QString & |
password |
|
) |
| |
|
pure virtual |
void KAbstractHttpAuthentication::generateResponseCommon |
( |
const QString & |
user, |
|
|
const QString & |
password |
|
) |
| |
|
protected |
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.
bool KAbstractHttpAuthentication::isError |
( |
| ) |
const |
|
inline |
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.
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.
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.
void KAbstractHttpAuthentication::reset |
( |
| ) |
|
virtual QByteArray KAbstractHttpAuthentication::scheme |
( |
| ) |
const |
|
pure virtual |
void KAbstractHttpAuthentication::setCachePasswordEnabled |
( |
bool |
enable | ) |
|
|
inline |
void KAbstractHttpAuthentication::setChallenge |
( |
const QByteArray & |
c, |
|
|
const KUrl & |
resource, |
|
|
const QByteArray & |
httpMethod |
|
) |
| |
|
virtual |
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.
virtual bool KAbstractHttpAuthentication::supportsPathMatching |
( |
| ) |
const |
|
inlinevirtual |
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.
QList<QByteArray> KAbstractHttpAuthentication::m_challenge |
|
protected |
QByteArray KAbstractHttpAuthentication::m_challengeText |
|
protected |
bool KAbstractHttpAuthentication::m_finalAuthStage |
|
protected |
bool KAbstractHttpAuthentication::m_forceDisconnect |
|
protected |
bool KAbstractHttpAuthentication::m_forceKeepAlive |
|
protected |
QByteArray KAbstractHttpAuthentication::m_headerFragment |
|
protected |
QByteArray KAbstractHttpAuthentication::m_httpMethod |
|
protected |
bool KAbstractHttpAuthentication::m_isError |
|
protected |
bool KAbstractHttpAuthentication::m_keepPassword |
|
protected |
bool KAbstractHttpAuthentication::m_needCredentials |
|
protected |
QString KAbstractHttpAuthentication::m_password |
|
protected |
KUrl KAbstractHttpAuthentication::m_resource |
|
protected |
QByteArray KAbstractHttpAuthentication::m_scheme |
|
protected |
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:58 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.