| 1 | // Copyright (C) 2018 Unified Automation GmbH |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QOPCUAPKICONFIGURATION_H |
| 5 | #define QOPCUAPKICONFIGURATION_H |
| 6 | |
| 7 | #include <QtOpcUa/qopcuaglobal.h> |
| 8 | |
| 9 | #include <QtCore/qmetatype.h> |
| 10 | #include <QtCore/qshareddata.h> |
| 11 | |
| 12 | #include <QtOpcUa/qopcuaapplicationidentity.h> |
| 13 | |
| 14 | QT_BEGIN_NAMESPACE |
| 15 | |
| 16 | class QOpcUaPkiConfigurationData; |
| 17 | class QOpcUaApplicationIdentity; |
| 18 | |
| 19 | class Q_OPCUA_EXPORT QOpcUaPkiConfiguration |
| 20 | { |
| 21 | public: |
| 22 | QOpcUaPkiConfiguration(); |
| 23 | ~QOpcUaPkiConfiguration(); |
| 24 | QOpcUaPkiConfiguration(const QOpcUaPkiConfiguration &other); |
| 25 | QOpcUaPkiConfiguration &operator=(const QOpcUaPkiConfiguration &rhs); |
| 26 | |
| 27 | QString clientCertificateFile() const; |
| 28 | void setClientCertificateFile(const QString &value); |
| 29 | |
| 30 | QString privateKeyFile() const; |
| 31 | void setPrivateKeyFile(const QString &value); |
| 32 | |
| 33 | QString trustListDirectory() const; |
| 34 | void setTrustListDirectory(const QString &value); |
| 35 | |
| 36 | QString revocationListDirectory() const; |
| 37 | void setRevocationListDirectory(const QString &value); |
| 38 | |
| 39 | QString issuerListDirectory() const; |
| 40 | void setIssuerListDirectory(const QString &value); |
| 41 | |
| 42 | QString issuerRevocationListDirectory() const; |
| 43 | void setIssuerRevocationListDirectory(const QString &value); |
| 44 | |
| 45 | QOpcUaApplicationIdentity applicationIdentity() const; |
| 46 | |
| 47 | bool isPkiValid() const; // Bad name, open for better ideas |
| 48 | bool isKeyAndCertificateFileSet() const; |
| 49 | |
| 50 | private: |
| 51 | QSharedDataPointer<QOpcUaPkiConfigurationData> data; |
| 52 | }; |
| 53 | |
| 54 | QT_END_NAMESPACE |
| 55 | |
| 56 | Q_DECLARE_METATYPE(QOpcUaPkiConfiguration) |
| 57 | |
| 58 | #endif // QOPCUAPKICONFIGURATION_H |
| 59 | |