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