Qt 4.8
|
#include <qauthenticator_p.h>
Public Types | |
enum | Method { None, Basic, Plain, Login, Ntlm, CramMd5, DigestMd5 } |
enum | Phase { Start, Phase2, Done, Invalid } |
Public 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) |
QAuthenticatorPrivate () | |
void | updateCredentials () |
~QAuthenticatorPrivate () | |
Static Public Functions | |
static QAuthenticatorPrivate * | getPrivate (QAuthenticator &auth) |
static const QAuthenticatorPrivate * | getPrivate (const QAuthenticator &auth) |
static QHash< QByteArray, QByteArray > | parseDigestAuthenticationChallenge (const QByteArray &challenge) |
Public Variables | |
QByteArray | challenge |
QByteArray | cnonce |
QString | extractedUser |
bool | hasFailed |
Method | method |
int | nonceCount |
QVariantHash | options |
QString | password |
Phase | phase |
QString | realm |
QString | user |
QString | userDomain |
QString | workstation |
Definition at line 66 of file qauthenticator_p.h.
Enumerator | |
---|---|
None | |
Basic | |
Plain | |
Login | |
Ntlm | |
CramMd5 | |
DigestMd5 |
Definition at line 69 of file qauthenticator_p.h.
Enumerator | |
---|---|
Start | |
Phase2 | |
Done | |
Invalid |
Definition at line 82 of file qauthenticator_p.h.
QAuthenticatorPrivate::QAuthenticatorPrivate | ( | ) |
Definition at line 329 of file qauthenticator.cpp.
QAuthenticatorPrivate::~QAuthenticatorPrivate | ( | ) |
Definition at line 355 of file qauthenticator.cpp.
QByteArray QAuthenticatorPrivate::calculateResponse | ( | const QByteArray & | method, |
const QByteArray & | path | ||
) |
Definition at line 446 of file qauthenticator.cpp.
Referenced by QHttpPrivate::_q_slotSendRequest(), QHttpNetworkConnectionPrivate::createAuthorization(), and QHttpSocketEngine::slotSocketConnected().
QByteArray QAuthenticatorPrivate::digestMd5Response | ( | const QByteArray & | challenge, |
const QByteArray & | method, | ||
const QByteArray & | path | ||
) |
Definition at line 642 of file qauthenticator.cpp.
Referenced by calculateResponse().
|
inlinestatic |
Definition at line 100 of file qauthenticator_p.h.
Referenced by QHttpPrivate::_q_slotReadyRead(), QHttpPrivate::_q_slotSendRequest(), QHttpNetworkConnectionPrivate::createAuthorization(), QHttpNetworkConnectionChannel::ensureConnection(), QHttpNetworkConnectionPrivate::handleAuthenticateChallenge(), QNetworkAccessManagerPrivate::proxyAuthenticationRequired(), QHttpSocketEngine::slotSocketConnected(), and QHttpSocketEngine::slotSocketReadNotification().
|
inlinestatic |
Definition at line 101 of file qauthenticator_p.h.
|
static |
Definition at line 502 of file qauthenticator.cpp.
Referenced by digestMd5Response(), and parseHttpResponse().
void QAuthenticatorPrivate::parseHttpResponse | ( | const QHttpResponseHeader & | header, |
bool | isProxy | ||
) |
Definition at line 341 of file qauthenticator.cpp.
Referenced by QHttpPrivate::_q_slotReadyRead(), QHttpNetworkConnectionPrivate::handleAuthenticateChallenge(), and QHttpSocketEngine::slotSocketReadNotification().
void QAuthenticatorPrivate::parseHttpResponse | ( | const QList< QPair< QByteArray, QByteArray > > & | values, |
bool | isProxy | ||
) |
Definition at line 382 of file qauthenticator.cpp.
void QAuthenticatorPrivate::updateCredentials | ( | ) |
Definition at line 359 of file qauthenticator.cpp.
Referenced by parseHttpResponse(), and QAuthenticator::setUser().
QByteArray QAuthenticatorPrivate::challenge |
Definition at line 79 of file qauthenticator_p.h.
Referenced by calculateResponse(), and parseHttpResponse().
QByteArray QAuthenticatorPrivate::cnonce |
Definition at line 91 of file qauthenticator_p.h.
Referenced by clientChallenge(), digestMd5Response(), and QAuthenticatorPrivate().
QString QAuthenticatorPrivate::extractedUser |
Definition at line 74 of file qauthenticator_p.h.
Referenced by QAuthenticator::operator=(), qCreatev2Hash(), qNtlmPhase3(), and updateCredentials().
bool QAuthenticatorPrivate::hasFailed |
Method QAuthenticatorPrivate::method |
Definition at line 77 of file qauthenticator_p.h.
Referenced by QHttpPrivate::_q_slotSendRequest(), calculateResponse(), QHttpNetworkConnectionPrivate::createAuthorization(), digestMd5Response(), QAuthenticator::operator=(), QAuthenticator::operator==(), parseHttpResponse(), QHttpSocketEngine::slotSocketConnected(), and updateCredentials().
int QAuthenticatorPrivate::nonceCount |
Definition at line 92 of file qauthenticator_p.h.
Referenced by digestMd5Response(), and QAuthenticatorPrivate().
QVariantHash QAuthenticatorPrivate::options |
Definition at line 76 of file qauthenticator_p.h.
Referenced by digestMd5Response(), QAuthenticator::operator=(), QAuthenticator::operator==(), QAuthenticator::option(), QAuthenticator::options(), parseDigestAuthenticationChallenge(), parseHttpResponse(), and QAuthenticator::setOption().
QString QAuthenticatorPrivate::password |
Definition at line 75 of file qauthenticator_p.h.
Referenced by calculateResponse(), digestMd5Response(), QAuthenticator::operator=(), QAuthenticator::operator==(), parseHttpResponse(), QAuthenticator::password(), qCreatev2Hash(), qStringFromUcs2Le(), and QAuthenticator::setPassword().
Phase QAuthenticatorPrivate::phase |
Definition at line 88 of file qauthenticator_p.h.
Referenced by QHttpPrivate::_q_slotReadyRead(), calculateResponse(), QAuthenticator::detach(), QHttpNetworkConnectionChannel::ensureConnection(), QHttpNetworkConnectionPrivate::handleAuthenticateChallenge(), QAuthenticator::operator=(), parseHttpResponse(), and QHttpSocketEngine::slotSocketReadNotification().
QString QAuthenticatorPrivate::realm |
Definition at line 78 of file qauthenticator_p.h.
Referenced by digestMd5Response(), QAuthenticator::operator=(), QAuthenticator::operator==(), parseHttpResponse(), QAuthenticator::realm(), and updateCredentials().
QString QAuthenticatorPrivate::user |
Definition at line 73 of file qauthenticator_p.h.
Referenced by calculateResponse(), digestMd5Response(), QAuthenticator::operator=(), QAuthenticator::operator==(), parseHttpResponse(), QAuthenticator::setUser(), updateCredentials(), and QAuthenticator::user().
QString QAuthenticatorPrivate::userDomain |
Definition at line 96 of file qauthenticator_p.h.
Referenced by QAuthenticator::operator=(), qNtlmPhase3(), and updateCredentials().
QString QAuthenticatorPrivate::workstation |
Definition at line 95 of file qauthenticator_p.h.
Referenced by QAuthenticator::operator=(), and qNtlmPhase3().