equal
deleted
inserted
replaced
55 |
55 |
56 #include <qhash.h> |
56 #include <qhash.h> |
57 #include <qbytearray.h> |
57 #include <qbytearray.h> |
58 #include <qstring.h> |
58 #include <qstring.h> |
59 #include <qauthenticator.h> |
59 #include <qauthenticator.h> |
|
60 #include <qvariant.h> |
60 |
61 |
61 QT_BEGIN_NAMESPACE |
62 QT_BEGIN_NAMESPACE |
62 |
63 |
63 class QHttpResponseHeader; |
64 class QHttpResponseHeader; |
64 |
65 |
65 class QAuthenticatorPrivate |
66 class Q_AUTOTEST_EXPORT QAuthenticatorPrivate |
66 { |
67 { |
67 public: |
68 public: |
68 enum Method { None, Basic, Plain, Login, Ntlm, CramMd5, DigestMd5 }; |
69 enum Method { None, Basic, Plain, Login, Ntlm, CramMd5, DigestMd5 }; |
69 QAuthenticatorPrivate(); |
70 QAuthenticatorPrivate(); |
70 |
71 |
71 QAtomicInt ref; |
72 QAtomicInt ref; |
72 QString user; |
73 QString user; |
73 QString password; |
74 QString password; |
74 QHash<QByteArray, QByteArray> options; |
75 QVariantHash options; |
75 Method method; |
76 Method method; |
76 QString realm; |
77 QString realm; |
77 QByteArray challenge; |
78 QByteArray challenge; |
78 |
79 |
79 enum Phase { |
80 enum Phase { |
100 static QHash<QByteArray, QByteArray> parseDigestAuthenticationChallenge(const QByteArray &challenge); |
101 static QHash<QByteArray, QByteArray> parseDigestAuthenticationChallenge(const QByteArray &challenge); |
101 |
102 |
102 #ifndef QT_NO_HTTP |
103 #ifndef QT_NO_HTTP |
103 void parseHttpResponse(const QHttpResponseHeader &, bool isProxy); |
104 void parseHttpResponse(const QHttpResponseHeader &, bool isProxy); |
104 #endif |
105 #endif |
|
106 void parseHttpResponse(const QList<QPair<QByteArray, QByteArray> >&, bool isProxy); |
105 |
107 |
106 }; |
108 }; |
107 |
109 |
108 |
110 |
109 QT_END_NAMESPACE |
111 QT_END_NAMESPACE |