6.0.0-rc4Source

QSslCipher Class

The QSslCipher class describes the cipher of a connection. More…

Header#include <QSslCipher>
CMaketarget_link_libraries(app PRIVATE Nt::Network)
ModuleNt Network C++ Classes

List of all members, including inherited members

Public Functions

QSslCipher()
QSslCipher(const QString &name)
QSslCipher(const QString &name, QSsl::SslProtocol protocol)
QSslCipher(const QString &name, int usedBits, int supportedBits, const QString &protocolString, QSsl::SslProtocol protocol)
boolisNull() const
QStringname() const
intusedBits() const
intsupportedBits() const
QStringprotocolString() const
QSsl::SslProtocolprotocol() const

Detailed Description

See also QSslSocket::sessionCipher().

Differences from Qt

The key exchange, authentication and encryption method names are not available separately; use name().

Member Function Documentation

QSslCipher::QSslCipher()

Constructs a null cipher.

[explicit] QSslCipher::QSslCipher(const QString &name)

This is an overloaded function.

Constructs the cipher called name, as OpenSSL names it, such as TLS_AES_256_GCM_SHA384 or ECDHE-RSA-AES256-GCM-SHA384. The cipher is null if this build of OpenSSL has none of that name.

See also QSslConfiguration::supportedCiphers().

QSslCipher::QSslCipher(const QString &name, QSsl::SslProtocol protocol)

This is an overloaded function.

Constructs the cipher called name of the protocol protocol. The cipher is null if there is no such cipher for that protocol.

QSslCipher::QSslCipher(const QString &name, int usedBits, int supportedBits, const QString &protocolString, QSsl::SslProtocol protocol)

Constructs a cipher called name, using usedBits of supportedBits key bits, for the protocol protocol described by protocolString.

bool QSslCipher::isNull() const

Returns true if this object describes no cipher.

QString QSslCipher::name() const

Returns the cipher's name.

QSsl::SslProtocol QSslCipher::protocol() const

Returns the protocol.

QString QSslCipher::protocolString() const

Returns the protocol as text, such as TLSv1.3.

int QSslCipher::supportedBits() const

Returns the number of key bits the cipher supports.

int QSslCipher::usedBits() const

Returns the number of key bits in use.