1 | // Copyright (C) 2019 The Qt Company Ltd. |
---|---|
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 QOPCUAX509EXTENSIONSUBJECTALTERNATIVENAME_H |
5 | #define QOPCUAX509EXTENSIONSUBJECTALTERNATIVENAME_H |
6 | |
7 | #include "QtOpcUa/qopcuax509extension.h" |
8 | #include <QtOpcUa/qopcuaglobal.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | // OID 2.5.29.17 |
13 | class Q_OPCUA_EXPORT QOpcUaX509ExtensionSubjectAlternativeName : public QOpcUaX509Extension |
14 | { |
15 | public: |
16 | enum class Type { |
17 | Email, |
18 | URI, |
19 | DNS, |
20 | IP |
21 | }; |
22 | |
23 | QOpcUaX509ExtensionSubjectAlternativeName(); |
24 | QOpcUaX509ExtensionSubjectAlternativeName(const QOpcUaX509ExtensionSubjectAlternativeName &); |
25 | QOpcUaX509ExtensionSubjectAlternativeName &operator=(const QOpcUaX509ExtensionSubjectAlternativeName &); |
26 | bool operator==(const QOpcUaX509ExtensionSubjectAlternativeName &rhs) const; |
27 | ~QOpcUaX509ExtensionSubjectAlternativeName(); |
28 | |
29 | void addEntry(Type type, const QString &value); |
30 | const QList<QPair<Type, QString>> &entries() const; |
31 | }; |
32 | |
33 | QT_END_NAMESPACE |
34 | #endif // QOPCUAX509EXTENSIONSUBJECTALTERNATIVENAME_H |
35 |