KSslInfoDialog Class

Header: #include <KSslInfoDialog>
CMake: find_package(Qt6 REQUIRED COMPONENTS KIOWidgets)
target_link_libraries(mytarget PRIVATE Qt6::KIOWidgets)

Public Functions

KSslInfoDialog(QWidget *parent = nullptr)
virtual ~KSslInfoDialog() override
void setSslInfo(const QList<QSslCertificate> &certificateChain, const QString &ip, const QString &host, const QString &sslProtocol, const QString &cipher, int usedBits, int bits, const QList<QList<QSslError::SslError>> &validationErrors)

Static Public Members

QList<QList<QSslError::SslError>> certificateErrorsFromString(const QString &errorsString)

Detailed Description

KDE SSL Information Dialog

This class creates a dialog that can be used to display information about an SSL session.

There are NO GUARANTEES that KSslInfoDialog will remain binary compatible/ Contact staikos@kde.org for details if needed.

@author George Staikos <staikos@kde.org> @see KSSL @short KDE SSL Information Dialog

Member Function Documentation

[explicit] KSslInfoDialog::KSslInfoDialog(QWidget *parent = nullptr)

Construct a KSSL Information Dialog

@param parent the parent widget

[override virtual noexcept] KSslInfoDialog::~KSslInfoDialog()

Destroy this dialog

[static] QList<QList<QSslError::SslError>> KSslInfoDialog::certificateErrorsFromString(const QString &errorsString)

Converts certificate errors as provided in the "ssl_cert_errors" meta data to a list of QSslError::SslError values per certificate in the certificate chain. @since 5.65

void KSslInfoDialog::setSslInfo(const QList<QSslCertificate> &certificateChain, const QString &ip, const QString &host, const QString &sslProtocol, const QString &cipher, int usedBits, int bits, const QList<QList<QSslError::SslError>> &validationErrors)

Set information to display about the SSL connection.

@param certificateChain the certificate chain leading from the certificate authority to the peer. @param ip the ip of the remote host @param host the remote hostname @param sslProtocol the version of SSL in use (SSLv2, SSLv3, TLSv1) @param cipher the cipher in use @param usedBits the used bits of the key @param bits the key size of the cipher in use @param validationErrors errors validating the certificates, if any @since 5.64