KVIrc 5.2.4
Developer APIs
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QHttpAuthenticatorPrivate Class Reference

#include <qhttpauthenticator_p.h>

Public Types

enum  Method {
  None , Basic , Plain , Login ,
  Ntlm , CramMd5 , DigestMd5
}
 
enum  Phase { Start , Phase2 , Done , Invalid }
 

Public Member Functions

QByteArray calculateResponse (const QByteArray &method, const QByteArray &path)
 
QByteArray digestMd5Response (const QByteArray &challenge, const QByteArray &method, const QByteArray &path)
 
void parseHttpResponse (const QHttpResponseHeader &, bool isProxy)
 
void parseHttpResponse (const QList< QPair< QByteArray, QByteArray > > &, bool isProxy)
 
 QHttpAuthenticatorPrivate ()
 

Static Public Member Functions

static const QHttpAuthenticatorPrivategetPrivate (const QHttpAuthenticator &auth)
 
static QHttpAuthenticatorPrivategetPrivate (QHttpAuthenticator &auth)
 
static QHash< QByteArray, QByteArray > parseDigestAuthenticationChallenge (const QByteArray &challenge)
 

Public Attributes

QByteArray challenge
 
QByteArray cnonce
 
QString extractedUser
 
bool hasFailed
 
Method method
 
int nonceCount
 
QVariantHash options
 
QString password
 
Phase phase
 
QString realm
 
QAtomicInt ref
 
QString user
 
QString userDomain
 
QString workstation
 

Member Enumeration Documentation

◆ Method

Enumerator
None 
Basic 
Plain 
Login 
Ntlm 
CramMd5 
DigestMd5 

◆ Phase

Enumerator
Start 
Phase2 
Done 
Invalid 

Constructor & Destructor Documentation

◆ QHttpAuthenticatorPrivate()

QHttpAuthenticatorPrivate::QHttpAuthenticatorPrivate ( )

References cnonce, and nonceCount.

Member Function Documentation

◆ calculateResponse()

QByteArray QHttpAuthenticatorPrivate::calculateResponse ( const QByteArray &  method,
const QByteArray &  path 
)

◆ digestMd5Response()

QByteArray QHttpAuthenticatorPrivate::digestMd5Response ( const QByteArray &  challenge,
const QByteArray &  method,
const QByteArray &  path 
)

◆ getPrivate() [1/2]

static const QHttpAuthenticatorPrivate * QHttpAuthenticatorPrivate::getPrivate ( const QHttpAuthenticator auth)
inlinestatic

References QHttpAuthenticator::d.

◆ getPrivate() [2/2]

static QHttpAuthenticatorPrivate * QHttpAuthenticatorPrivate::getPrivate ( QHttpAuthenticator auth)
inlinestatic

◆ parseDigestAuthenticationChallenge()

QHash< QByteArray, QByteArray > QHttpAuthenticatorPrivate::parseDigestAuthenticationChallenge ( const QByteArray &  challenge)
static

References challenge, d, end(), and options.

Referenced by digestMd5Response(), and parseHttpResponse().

◆ parseHttpResponse() [1/2]

void QHttpAuthenticatorPrivate::parseHttpResponse ( const QHttpResponseHeader header,
bool  isProxy 
)

◆ parseHttpResponse() [2/2]

void QHttpAuthenticatorPrivate::parseHttpResponse ( const QList< QPair< QByteArray, QByteArray > > &  values,
bool  isProxy 
)

Member Data Documentation

◆ challenge

QByteArray QHttpAuthenticatorPrivate::challenge

◆ cnonce

QByteArray QHttpAuthenticatorPrivate::cnonce

◆ extractedUser

QString QHttpAuthenticatorPrivate::extractedUser

◆ hasFailed

bool QHttpAuthenticatorPrivate::hasFailed

◆ method

Method QHttpAuthenticatorPrivate::method

◆ nonceCount

int QHttpAuthenticatorPrivate::nonceCount

◆ options

QVariantHash QHttpAuthenticatorPrivate::options

◆ password

QString QHttpAuthenticatorPrivate::password

◆ phase

Phase QHttpAuthenticatorPrivate::phase

◆ realm

QString QHttpAuthenticatorPrivate::realm

◆ ref

QAtomicInt QHttpAuthenticatorPrivate::ref

◆ user

QString QHttpAuthenticatorPrivate::user

◆ userDomain

QString QHttpAuthenticatorPrivate::userDomain

◆ workstation

QString QHttpAuthenticatorPrivate::workstation

Referenced by qNtlmPhase3().


The documentation for this class was generated from the following files: