Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsslcipher.h
Go to the documentation of this file.
1// Copyright (C) 2016 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
5#ifndef QSSLCIPHER_H
6#define QSSLCIPHER_H
7
8#include <QtNetwork/qtnetworkglobal.h>
9#include <QtCore/qstring.h>
10#include <QtCore/qscopedpointer.h>
11#include <QtNetwork/qssl.h>
12
13#include <memory>
14
16
17
18#ifndef QT_NO_SSL
19
21class Q_NETWORK_EXPORT QSslCipher
22{
23public:
24 QSslCipher();
25 explicit QSslCipher(const QString &name);
26 QSslCipher(const QString &name, QSsl::SslProtocol protocol);
28 QSslCipher &operator=(QSslCipher &&other) noexcept { swap(other); return *this; }
29 QSslCipher &operator=(const QSslCipher &other);
31
32 void swap(QSslCipher &other) noexcept
33 { d.swap(other.d); }
34
35 bool operator==(const QSslCipher &other) const;
36 inline bool operator!=(const QSslCipher &other) const { return !operator==(other); }
37
38 bool isNull() const;
39 QString name() const;
40 int supportedBits() const;
41 int usedBits() const;
42
43 QString keyExchangeMethod() const;
44 QString authenticationMethod() const;
45 QString encryptionMethod() const;
46 QString protocolString() const;
47 QSsl::SslProtocol protocol() const;
48
49private:
50 // ### Qt 7: make implicitly shared
51 std::unique_ptr<QSslCipherPrivate> d;
52 friend class QTlsBackend;
53};
54
55Q_DECLARE_SHARED(QSslCipher)
56
57#ifndef QT_NO_DEBUG_STREAM
58class QDebug;
59Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCipher &cipher);
60#endif
61
62#endif // QT_NO_SSL
63
65
66#endif
67
\inmodule QtCore
The QSslCipher class represents an SSL cryptographic cipher.
Definition qsslcipher.h:22
QSslCipher & operator=(QSslCipher &&other) noexcept
Definition qsslcipher.h:28
void swap(QSslCipher &other) noexcept
Definition qsslcipher.h:32
bool operator!=(const QSslCipher &other) const
Returns true if this cipher is not the same as other; otherwise, false is returned.
Definition qsslcipher.h:36
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QTlsBackend is a factory class, providing implementations for the QSsl classes.
SslProtocol
Describes the protocol of the cipher.
Definition qssl.h:50
Combined button and popup list for selecting options.
GLuint name
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition qrandom.cpp:1220
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, const QSslCipher &cipher)
QSharedPointer< T > other(t)
[5]
this swap(other)