• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIOSlave

Public Member Functions | Protected Member Functions | List of all members
KHttpBasicAuthentication Class Reference

#include <httpauthentication.h>

Inheritance diagram for KHttpBasicAuthentication:
KAbstractHttpAuthentication

Public Member Functions

virtual void fillKioAuthInfo (KIO::AuthInfo *ai) const
 
virtual void generateResponse (const QString &user, const QString &password)
 
virtual QByteArray scheme () const
 
virtual bool supportsPathMatching () const
 
- Public Member Functions inherited from KAbstractHttpAuthentication
 KAbstractHttpAuthentication (KConfigGroup *config=0)
 
virtual ~KAbstractHttpAuthentication ()
 
virtual void fillKioAuthInfo (KIO::AuthInfo *ai) const =0
 
bool forceDisconnect () const
 
bool forceKeepAlive () const
 
virtual void generateResponse (const QString &user, const QString &password)=0
 
QByteArray headerFragment () const
 
bool isError () const
 
bool needCredentials () const
 
QString realm () const
 
void reset ()
 
virtual QByteArray scheme () const =0
 
void setCachePasswordEnabled (bool enable)
 
virtual void setChallenge (const QByteArray &c, const KUrl &resource, const QByteArray &httpMethod)
 
virtual bool supportsPathMatching () const
 
bool wasFinalStage () const
 

Protected Member Functions

virtual QByteArray authDataToCache () const
 
- Protected Member Functions inherited from KAbstractHttpAuthentication
virtual QByteArray authDataToCache () const
 
void authInfoBoilerplate (KIO::AuthInfo *a) const
 
void generateResponseCommon (const QString &user, const QString &password)
 

Additional Inherited Members

- Static Public Member Functions inherited from KAbstractHttpAuthentication
static QByteArray bestOffer (const QList< QByteArray > &offers)
 
static KAbstractHttpAuthentication * newAuth (const QByteArray &offer, KConfigGroup *config=0)
 
static QList< QByteArray > splitOffers (const QList< QByteArray > &offers)
 
- Protected Attributes inherited from KAbstractHttpAuthentication
QList< QByteArray > m_challenge
 
QByteArray m_challengeText
 
KConfigGroup * m_config
 
bool m_finalAuthStage
 
bool m_forceDisconnect
 
bool m_forceKeepAlive
 
QByteArray m_headerFragment
 
QByteArray m_httpMethod
 
bool m_isError
 
bool m_keepPassword
 
bool m_needCredentials
 
QString m_password
 
KUrl m_resource
 
QByteArray m_scheme
 
QString m_username
 

Detailed Description

Definition at line 182 of file httpauthentication.h.

Member Function Documentation

◆ authDataToCache()

virtual QByteArray KHttpBasicAuthentication::authDataToCache ( ) const
inlineprotectedvirtual

Returns any authentication data that should be cached for future use.

NOTE: Do not reimplement this function for connection based authentication schemes such as NTLM.

Reimplemented from KAbstractHttpAuthentication.

Definition at line 190 of file httpauthentication.h.

◆ fillKioAuthInfo()

void KHttpBasicAuthentication::fillKioAuthInfo ( KIO::AuthInfo *  ai) const
virtual

KIO compatible data to find cached credentials.

Note that username and/or password as well as UI text will NOT be filled in.

Implements KAbstractHttpAuthentication.

Definition at line 382 of file httpauthentication.cpp.

◆ generateResponse()

void KHttpBasicAuthentication::generateResponse ( const QString &  user,
const QString &  password 
)
virtual

what to do in response to challenge

Implements KAbstractHttpAuthentication.

Definition at line 387 of file httpauthentication.cpp.

◆ scheme()

QByteArray KHttpBasicAuthentication::scheme ( ) const
virtual

the authentication scheme: "Negotiate", "Digest", "Basic", "NTLM"

Implements KAbstractHttpAuthentication.

Definition at line 376 of file httpauthentication.cpp.

◆ supportsPathMatching()

virtual bool KHttpBasicAuthentication::supportsPathMatching ( ) const
inlinevirtual

Returns true if the authentication scheme supports path matching to identify resources that belong to the same protection space (realm).

See RFC 2617.

Reimplemented from KAbstractHttpAuthentication.

Definition at line 188 of file httpauthentication.h.


The documentation for this class was generated from the following files:
  • httpauthentication.h
  • httpauthentication.cpp
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.

KIOSlave

Skip menu "KIOSlave"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal