![]() |
KVIrc 5.2.6
Developer APIs
|
#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 QHttpAuthenticatorPrivate * | getPrivate (const QHttpAuthenticator &auth) |
static QHttpAuthenticatorPrivate * | getPrivate (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 |
QHttpAuthenticatorPrivate::QHttpAuthenticatorPrivate | ( | ) |
References cnonce, hasFailed, method, nonceCount, None, phase, ref, and Start.
Referenced by getPrivate(), and getPrivate().
QByteArray QHttpAuthenticatorPrivate::calculateResponse | ( | const QByteArray & | method, |
const QByteArray & | path ) |
References Basic, challenge, CramMd5, DigestMd5, digestMd5Response(), Done, Login, method, None, Ntlm, password, phase, Phase2, Plain, qNtlmPhase1(), qNtlmPhase3(), and user.
Referenced by QHttpPrivate::_q_slotSendRequest().
QByteArray QHttpAuthenticatorPrivate::digestMd5Response | ( | const QByteArray & | challenge, |
const QByteArray & | method, | ||
const QByteArray & | path ) |
References challenge, cnonce, digestMd5ResponseHelper(), method, nonceCount, options, parseDigestAuthenticationChallenge(), password, realm, and user.
Referenced by calculateResponse().
|
inlinestatic |
References QHttpAuthenticator::d, and QHttpAuthenticatorPrivate().
|
inlinestatic |
References QHttpAuthenticator::d, and QHttpAuthenticatorPrivate().
Referenced by QHttpPrivate::_q_slotReadyRead(), and QHttpPrivate::_q_slotSendRequest().
|
static |
References challenge, d, end(), and options.
Referenced by digestMd5Response(), and parseHttpResponse().
void QHttpAuthenticatorPrivate::parseHttpResponse | ( | const QHttpResponseHeader & | header, |
bool | isProxy ) |
References end(), parseHttpResponse(), and QHttpHeader::values().
Referenced by QHttpPrivate::_q_slotReadyRead(), and parseHttpResponse().
void QHttpAuthenticatorPrivate::parseHttpResponse | ( | const QList< QPair< QByteArray, QByteArray > > & | values, |
bool | isProxy ) |
QByteArray QHttpAuthenticatorPrivate::challenge |
Referenced by calculateResponse(), digestMd5Response(), parseDigestAuthenticationChallenge(), and parseHttpResponse().
QByteArray QHttpAuthenticatorPrivate::cnonce |
Referenced by clientChallenge(), digestMd5Response(), and QHttpAuthenticatorPrivate().
QString QHttpAuthenticatorPrivate::extractedUser |
Referenced by qCreatev2Hash(), and qNtlmPhase3().
bool QHttpAuthenticatorPrivate::hasFailed |
Referenced by QHttpAuthenticatorPrivate().
Method QHttpAuthenticatorPrivate::method |
int QHttpAuthenticatorPrivate::nonceCount |
Referenced by digestMd5Response(), and QHttpAuthenticatorPrivate().
QVariantHash QHttpAuthenticatorPrivate::options |
QString QHttpAuthenticatorPrivate::password |
Referenced by calculateResponse(), digestMd5Response(), QHttpAuthenticator::operator==(), parseHttpResponse(), and qCreatev2Hash().
Phase QHttpAuthenticatorPrivate::phase |
Referenced by QHttpPrivate::_q_slotReadyRead(), calculateResponse(), parseHttpResponse(), and QHttpAuthenticatorPrivate().
QString QHttpAuthenticatorPrivate::realm |
Referenced by digestMd5Response(), QHttpAuthenticator::operator==(), and parseHttpResponse().
QAtomicInt QHttpAuthenticatorPrivate::ref |
Referenced by QHttpAuthenticatorPrivate().
QString QHttpAuthenticatorPrivate::user |
Referenced by calculateResponse(), digestMd5Response(), QHttpAuthenticator::operator==(), and parseHttpResponse().
QString QHttpAuthenticatorPrivate::userDomain |
Referenced by qNtlmPhase3().
QString QHttpAuthenticatorPrivate::workstation |
Referenced by qNtlmPhase3().