KD SOAP API Documentation  2.1
KDSoapAuthentication.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** This file is part of the KD Soap project.
4 **
5 ** SPDX-FileCopyrightText: 2010-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: MIT
8 **
9 ****************************************************************************/
10 #ifndef KDSOAPAUTHENTICATION_H
11 #define KDSOAPAUTHENTICATION_H
12 
13 #include "KDSoapGlobal.h"
14 #include <QtCore/QUrl>
15 QT_BEGIN_NAMESPACE
16 class QAuthenticator;
17 class QDateTime;
18 class QNetworkReply;
19 class QXmlStreamWriter;
20 QT_END_NAMESPACE
22 
31 {
32 public:
33  friend class KDSoapMessageWriter;
35  friend class KDSoapThreadTask;
36 
49 
53  void setUser(const QString &user);
57  QString user() const;
58 
62  void setPassword(const QString &password);
66  QString password() const;
67 
71  void setUsePasswordDigest(const bool usePasswordDigest);
75  bool usePasswordDigest() const;
76 
83  void setUseWSUsernameToken(bool useWSUsernameToken);
88  bool useWSUsernameToken() const;
89 
95  void setOverrideWSUsernameCreatedTime(QDateTime overrideWSUsernameCreatedTime);
100  QDateTime overrideWSUsernameCreatedTime() const;
101 
107  void setOverrideWSUsernameNonce(QByteArray overrideWSUsernameNonce);
112  QByteArray overrideWSUsernameNonce() const;
113 
118  bool hasAuth() const;
119 
123  KDSoapAuthentication &operator=(const KDSoapAuthentication &other);
124 
125 private:
129  void handleAuthenticationRequired(QNetworkReply *reply, QAuthenticator *authenticator);
130 
134  bool hasWSUsernameTokenHeader() const;
135 
139  void writeWSUsernameTokenHeader(QXmlStreamWriter &writer) const;
140 
141 private:
142  class Private;
143  Private *const d;
144 };
145 
146 #endif // KDSOAPAUTHENTICATION_H
#define KDSOAP_EXPORT
Definition: KDSoapGlobal.h:22

© 2010-2022 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-soap/
Generated on Tue Jun 13 2023 12:18:34 for KD SOAP API Documentation by doxygen 1.9.1