KIOSlave
httpauthentication.h
Go to the documentation of this file.
78 virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod);
202 virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod);
226 virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod);
241 virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod);
static KAbstractHttpAuthentication * newAuth(const QByteArray &offer, KConfigGroup *config=0)
Returns authentication object instance appropriate for offer.
Definition: httpauthentication.cpp:266
virtual ~KAbstractHttpAuthentication()
Definition: httpauthentication.cpp:223
virtual void generateResponse(const QString &user, const QString &password)
what to do in response to challenge
Definition: httpauthentication.cpp:519
virtual QByteArray scheme() const
the authentication scheme: "Negotiate", "Digest", "Basic", "NTLM"
Definition: httpauthentication.cpp:400
virtual bool supportsPathMatching() const
Returns true if the authentication scheme supports path matching to identify resources that belong to...
Definition: httpauthentication.h:188
virtual QByteArray scheme() const
the authentication scheme: "Negotiate", "Digest", "Basic", "NTLM"
Definition: httpauthentication.cpp:697
KAbstractHttpAuthentication(KConfigGroup *config=0)
Definition: httpauthentication.cpp:217
virtual void fillKioAuthInfo(KIO::AuthInfo *ai) const
KIO compatible data to find cached credentials.
Definition: httpauthentication.cpp:427
QByteArray m_httpMethod
Definition: httpauthentication.h:167
void generateResponseCommon(const QString &user, const QString &password)
Definition: httpauthentication.cpp:357
virtual QByteArray scheme() const =0
the authentication scheme: "Negotiate", "Digest", "Basic", "NTLM"
Definition: httpauthentication.h:182
KSharedConfigPtr config()
static QList< QByteArray > splitOffers(const QList< QByteArray > &offers)
Split all headers containing multiple authentication offers.
Definition: httpauthentication.cpp:284
virtual void fillKioAuthInfo(KIO::AuthInfo *ai) const =0
KIO compatible data to find cached credentials.
virtual void generateResponse(const QString &user, const QString &password)
what to do in response to challenge
Definition: httpauthentication.cpp:732
bool m_forceDisconnect
Definition: httpauthentication.h:172
virtual QByteArray scheme() const
the authentication scheme: "Negotiate", "Digest", "Basic", "NTLM"
Definition: httpauthentication.cpp:376
bool needCredentials() const
return value updated by setChallenge()
Definition: httpauthentication.h:85
bool forceDisconnect() const
force disconnection because the authentication method requires it
Definition: httpauthentication.h:125
bool m_forceKeepAlive
Definition: httpauthentication.h:171
virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod)
initiate authentication with challenge string (from HTTP header)
Definition: httpauthentication.cpp:703
virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod)
initiate authentication with challenge string (from HTTP header)
Definition: httpauthentication.cpp:406
static QByteArray bestOffer(const QList< QByteArray > &offers)
Choose the best authentication mechanism from the offered ones.
Definition: httpauthentication.cpp:227
void authInfoBoilerplate(KIO::AuthInfo *a) const
Definition: httpauthentication.cpp:345
QByteArray headerFragment() const
insert this into the next request header after "Authorization: " or "Proxy-Authorization: " ...
Definition: httpauthentication.h:131
virtual void generateResponse(const QString &user, const QString &password)
what to do in response to challenge
Definition: httpauthentication.cpp:387
virtual void generateResponse(const QString &user, const QString &password)=0
what to do in response to challenge
QByteArray m_headerFragment
Definition: httpauthentication.h:175
virtual bool supportsPathMatching() const
Returns true if the authentication scheme supports path matching to identify resources that belong to...
Definition: httpauthentication.h:205
bool m_finalAuthStage
Definition: httpauthentication.h:173
virtual void setChallenge(const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod)
initiate authentication with challenge string (from HTTP header)
Definition: httpauthentication.cpp:322
virtual void fillKioAuthInfo(KIO::AuthInfo *ai) const
KIO compatible data to find cached credentials.
Definition: httpauthentication.cpp:722
QByteArray m_scheme
this is parsed from the header and not necessarily == scheme().
Definition: httpauthentication.h:163
bool wasFinalStage() const
returns true when the final stage of authentication is reached.
Definition: httpauthentication.h:104
virtual QByteArray authDataToCache() const
Returns any authentication data that should be cached for future use.
Definition: httpauthentication.h:159
bool m_needCredentials
Definition: httpauthentication.h:170
bool forceKeepAlive() const
force keep-alive connection because the authentication method requires it
Definition: httpauthentication.h:121
virtual QByteArray authDataToCache() const
Returns any authentication data that should be cached for future use.
Definition: httpauthentication.h:190
void setCachePasswordEnabled(bool enable)
Sets the cache password flag to enable.
Definition: httpauthentication.h:144
virtual void fillKioAuthInfo(KIO::AuthInfo *ai) const
KIO compatible data to find cached credentials.
Definition: httpauthentication.cpp:382
virtual bool supportsPathMatching() const
Returns true if the authentication scheme supports path matching to identify resources that belong to...
Definition: httpauthentication.h:111
QList< QByteArray > m_challenge
Definition: httpauthentication.h:165
Definition: httpauthentication.h:222
QByteArray m_challengeText
Definition: httpauthentication.h:164
virtual QByteArray authDataToCache() const
Returns any authentication data that should be cached for future use.
Definition: httpauthentication.h:211
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.