QSslCipher Class
Die Klasse QSslCipher repräsentiert eine kryptographische SSL-Chiffre. Mehr...
Kopfzeile: | #include <QSslCipher> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
qmake: | QT += network |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- QSslCipher ist Teil von Network Programming API und Implicitly Shared Classes.
Hinweis: Alle Funktionen in dieser Klasse sind reentrant.
Öffentliche Funktionen
QSslCipher() | |
QSslCipher(const QString &name) | |
QSslCipher(const QString &name, QSsl::SslProtocol protocol) | |
QSslCipher(const QSslCipher &other) | |
~QSslCipher() | |
QString | authenticationMethod() const |
QString | encryptionMethod() const |
bool | isNull() const |
QString | keyExchangeMethod() const |
QString | name() const |
QSsl::SslProtocol | protocol() const |
QString | protocolString() const |
int | supportedBits() const |
void | swap(QSslCipher &other) |
int | usedBits() const |
bool | operator!=(const QSslCipher &other) const |
QSslCipher & | operator=(const QSslCipher &other) |
bool | operator==(const QSslCipher &other) const |
Detaillierte Beschreibung
QSslCipher speichert Informationen über eine kryptografische Chiffre. Sie wird am häufigsten mit QSslSocket verwendet, entweder um zu konfigurieren, welche Chiffren der Socket verwenden kann, oder um die Chiffren des Sockets für den Benutzer anzuzeigen.
Siehe auch QSslSocket und QSslKey.
Dokumentation der Mitgliedsfunktionen
QSslCipher::QSslCipher()
Konstruiert ein leeres QSslCipher-Objekt.
[explicit]
QSslCipher::QSslCipher(const QString &name)
Konstruiert ein QSslCipher-Objekt für die durch name bestimmte Chiffre. Der Konstruktor akzeptiert nur unterstützte Chiffren (d.h. name muss eine Chiffre in der Liste der Chiffren identifizieren, die von QSslSocket::supportedCiphers() zurückgegeben wird).
Sie können isNull() nach der Konstruktion aufrufen, um zu prüfen, ob name eine unterstützte Chiffre korrekt identifiziert hat.
QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol)
Konstruiert ein QSslCipher-Objekt für die durch name und protocol bestimmte Chiffre. Der Konstruktor akzeptiert nur unterstützte Chiffren (d.h. name und protocol müssen eine Chiffre in der Liste der Chiffren identifizieren, die von QSslSocket::supportedCiphers() zurückgegeben wird).
Sie können isNull() nach der Konstruktion aufrufen, um zu prüfen, ob name und protocol korrekt eine unterstützte Chiffre identifiziert haben.
QSslCipher::QSslCipher(const QSslCipher &other)
Konstruiert eine identische Kopie der Chiffre other.
[noexcept]
QSslCipher::~QSslCipher()
Zerstört das Objekt QSslCipher.
QString QSslCipher::authenticationMethod() const
Gibt die Authentifizierungsmethode der Chiffre als QString zurück.
QString QSslCipher::encryptionMethod() const
Gibt die Verschlüsselungsmethode der Chiffre als QString zurück.
bool QSslCipher::isNull() const
Gibt true
zurück, wenn es sich um eine Null-Chiffre handelt; andernfalls wird false
zurückgegeben.
QString QSslCipher::keyExchangeMethod() const
Gibt die Schlüsselaustauschmethode der Chiffre als QString zurück.
QString QSslCipher::name() const
Gibt den Namen der Chiffre zurück, oder ein leeres QString, wenn es sich um eine Null-Chiffre handelt.
Siehe auch isNull().
QSsl::SslProtocol QSslCipher::protocol() const
Gibt den Protokolltyp der Chiffre zurück, oder QSsl::UnknownProtocol, wenn QSslCipher das Protokoll nicht bestimmen kann (protocolString() kann weitere Informationen enthalten).
Siehe auch protocolString().
QString QSslCipher::protocolString() const
Gibt das Protokoll der Chiffre als QString zurück.
Siehe auch protocol().
int QSslCipher::supportedBits() const
Gibt die Anzahl der von der Chiffre unterstützten Bits zurück.
Siehe auch usedBits().
[noexcept]
void QSslCipher::swap(QSslCipher &other)
Tauscht diese Chiffre-Instanz mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.
int QSslCipher::usedBits() const
Gibt die Anzahl der von der Chiffre verwendeten Bits zurück.
Siehe auch supportedBits().
bool QSslCipher::operator!=(const QSslCipher &other) const
Gibt true
zurück, wenn diese Chiffre nicht mit other identisch ist; andernfalls wird false zurückgegeben.
QSslCipher &QSslCipher::operator=(const QSslCipher &other)
Kopiert den Inhalt von other in diese Chiffre, wodurch die beiden Chiffren identisch werden.
bool QSslCipher::operator==(const QSslCipher &other) const
Gibt true
zurück, wenn diese Chiffre dieselbe ist wie other; andernfalls wird false zurückgegeben.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.