42#ifndef QHTTPAUTHENTICATOR_P_H
43#define QHTTPAUTHENTICATOR_P_H
57#include <qbytearray.h>
60#include <QAuthenticator>
85 QString
realm()
const;
87 QVariant
option(
const QString & opt)
const;
89 void setOption(
const QString & opt,
const QVariant & value);
155 void parseHttpResponse(
const QList<QPair<QByteArray, QByteArray>> &,
bool isProxy);
Definition qhttpauthenticator_p.h:103
QAtomicInt ref
Definition qhttpauthenticator_p.h:117
QString extractedUser
Definition qhttpauthenticator_p.h:119
QString workstation
Definition qhttpauthenticator_p.h:141
static QHash< QByteArray, QByteArray > parseDigestAuthenticationChallenge(const QByteArray &challenge)
Definition qhttpauthenticator.cpp:505
static const QHttpAuthenticatorPrivate * getPrivate(const QHttpAuthenticator &auth)
Definition qhttpauthenticator_p.h:147
QString realm
Definition qhttpauthenticator_p.h:123
void parseHttpResponse(const QHttpResponseHeader &, bool isProxy)
Definition qhttpauthenticator.cpp:362
QByteArray challenge
Definition qhttpauthenticator_p.h:124
Method
Definition qhttpauthenticator_p.h:106
@ Basic
Definition qhttpauthenticator_p.h:108
@ CramMd5
Definition qhttpauthenticator_p.h:112
@ Plain
Definition qhttpauthenticator_p.h:109
@ Login
Definition qhttpauthenticator_p.h:110
@ DigestMd5
Definition qhttpauthenticator_p.h:113
@ Ntlm
Definition qhttpauthenticator_p.h:111
@ None
Definition qhttpauthenticator_p.h:107
static QHttpAuthenticatorPrivate * getPrivate(QHttpAuthenticator &auth)
Definition qhttpauthenticator_p.h:146
QVariantHash options
Definition qhttpauthenticator_p.h:121
QString user
Definition qhttpauthenticator_p.h:118
QString password
Definition qhttpauthenticator_p.h:120
bool hasFailed
Definition qhttpauthenticator_p.h:125
QByteArray calculateResponse(const QByteArray &method, const QByteArray &path)
Definition qhttpauthenticator.cpp:443
Method method
Definition qhttpauthenticator_p.h:122
QByteArray digestMd5Response(const QByteArray &challenge, const QByteArray &method, const QByteArray &path)
Definition qhttpauthenticator.cpp:656
QHttpAuthenticatorPrivate()
Definition qhttpauthenticator.cpp:352
int nonceCount
Definition qhttpauthenticator_p.h:138
QString userDomain
Definition qhttpauthenticator_p.h:142
QByteArray cnonce
Definition qhttpauthenticator_p.h:137
Phase phase
Definition qhttpauthenticator_p.h:134
Phase
Definition qhttpauthenticator_p.h:128
@ Invalid
Definition qhttpauthenticator_p.h:132
@ Done
Definition qhttpauthenticator_p.h:131
@ Start
Definition qhttpauthenticator_p.h:129
@ Phase2
Definition qhttpauthenticator_p.h:130
The QHttpAuthenticator class provides an authentication object.
Definition qhttpauthenticator_p.h:68
QHttpAuthenticator & operator=(const QHttpAuthenticator &other)
Definition qhttpauthenticator.cpp:162
QString password() const
Definition qhttpauthenticator.cpp:264
QVariantHash options() const
Definition qhttpauthenticator.cpp:325
void setPassword(const QString &password)
Definition qhttpauthenticator.cpp:274
QVariant option(const QString &opt) const
Definition qhttpauthenticator.cpp:312
bool operator==(const QHttpAuthenticator &other) const
Definition qhttpauthenticator.cpp:180
void detach()
Definition qhttpauthenticator.cpp:283
friend class QHttpAuthenticatorPrivate
Definition qhttpauthenticator_p.h:98
QAuthenticator toQAuthenticator()
Definition qhttpauthenticator.cpp:200
QString user() const
Definition qhttpauthenticator.cpp:220
QString realm() const
Definition qhttpauthenticator.cpp:299
void setUser(const QString &user)
Definition qhttpauthenticator.cpp:230
bool isNull() const
Definition qhttpauthenticator.cpp:347
QHttpAuthenticator()
Definition qhttpauthenticator.cpp:135
QHttpAuthenticatorPrivate * d
Definition qhttpauthenticator_p.h:99
void setOption(const QString &opt, const QVariant &value)
Definition qhttpauthenticator.cpp:338
~QHttpAuthenticator()
Definition qhttpauthenticator.cpp:143
bool operator!=(const QHttpAuthenticator &other) const
Definition qhttpauthenticator_p.h:77