QWebEngineCertificateError Class

The QWebEngineCertificateError class provides information about a certificate error. More...

Header: #include <QWebEngineCertificateError>
qmake: QT += webenginewidgets
Since: Qt 5.4

Public Types

enum Error { SslPinnedKeyNotInCertificateChain, CertificateCommonNameInvalid, CertificateDateInvalid, CertificateAuthorityInvalid, ..., CertificateTransparencyRequired }

Public Functions

Error error() const
QString errorDescription() const
bool isOverridable() const
QUrl url() const

Detailed Description

The QWebEngineCertificateError class provides information about a certificate error.

Provides information about a certificate error. This class is used as a parameter of QWebEnginePage::certificateError().

Member Type Documentation

enum QWebEngineCertificateError::Error

This enum describes the type of certificate error encountered.

The values of this enum type match the SSL errors Chromium provides. QSslError::SslError values are not used directly, because the Qt error categories cannot be mapped to the Chromium error categories.

Constant Value Description
QWebEngineCertificateError::SslPinnedKeyNotInCertificateChain -150 The certificate did not match the built-in public keys pinned for the host name.
QWebEngineCertificateError::CertificateCommonNameInvalid -200 The certificate's common name did not match the host name.
QWebEngineCertificateError::CertificateDateInvalid -201 The certificate is not valid at the current date and time.
QWebEngineCertificateError::CertificateAuthorityInvalid -202 The certificate is not signed by a trusted authority.
QWebEngineCertificateError::CertificateContainsErrors -203 The certificate contains errors.
QWebEngineCertificateError::CertificateNoRevocationMechanism -204 The certificate has no mechanism for determining if it has been revoked.
QWebEngineCertificateError::CertificateUnableToCheckRevocation -205 Revocation information for the certificate is not available.
QWebEngineCertificateError::CertificateRevoked -206 The certificate has been revoked.
QWebEngineCertificateError::CertificateInvalid -207 The certificate is invalid.
QWebEngineCertificateError::CertificateWeakSignatureAlgorithm -208 The certificate is signed using a weak signature algorithm.
QWebEngineCertificateError::CertificateNonUniqueName -210 The host name specified in the certificate is not unique.
QWebEngineCertificateError::CertificateWeakKey -211 The certificate contains a weak key.
QWebEngineCertificateError::CertificateNameConstraintViolation -212 The certificate claimed DNS names that are in violation of name constraints.
QWebEngineCertificateError::CertificateValidityTooLong -213 The certificate has a validity period that is too long. (Added in Qt 5.7)
QWebEngineCertificateError::CertificateTransparencyRequired -214 Certificate Transparency was required for this connection, but the server did not provide CT information that complied with the policy. (Added in Qt 5.8)

Member Function Documentation

Error QWebEngineCertificateError::error() const

Returns the type of the error.

See also errorDescription() and isOverridable().

QString QWebEngineCertificateError::errorDescription() const

Returns a short localized human-readable description of the error.

See also error(), url(), and isOverridable().

bool QWebEngineCertificateError::isOverridable() const

Returns whether this error can be overridden and accepted.

See also error() and errorDescription().

QUrl QWebEngineCertificateError::url() const

Returns the URL that triggered the error.

See also error() and errorDescription().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qwebenginecertificateerror.html