PySide6.QtWebEngineCore.QWebEngineCertificateError¶
- class QWebEngineCertificateError¶
The
QWebEngineCertificateErrorclass provides information about a certificate error.Details
Provides information about a certificate error. This class is used as a parameter of
certificateError().Synopsis¶
Properties¶
descriptionᅟ- A short localized human-readable description of the erroroverridableᅟ- Whether this error can be overridden and acceptedtypeᅟ- Of the errorurlᅟ- URL that triggered the error
Methods¶
def
__init__()def
defer()def
description()def
isMainFrame()def
isOverridable()def
type()def
url()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class Type¶
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
Description
QWebEngineCertificateError.Type.Ok
There was no actual certificate error.
QWebEngineCertificateError.Type.SslPinnedKeyNotInCertificateChain
The certificate did not match the built-in public keys pinned for the host name.
QWebEngineCertificateError.Type.CertificateCommonNameInvalid
The certificate’s common name did not match the host name.
QWebEngineCertificateError.Type.CertificateDateInvalid
The certificate is not valid at the current date and time.
QWebEngineCertificateError.Type.CertificateAuthorityInvalid
The certificate is not signed by a trusted authority.
QWebEngineCertificateError.Type.CertificateContainsErrors
The certificate contains errors.
QWebEngineCertificateError.Type.CertificateNoRevocationMechanism
The certificate has no mechanism for determining if it has been revoked.
QWebEngineCertificateError.Type.CertificateUnableToCheckRevocation
Revocation information for the certificate is not available.
QWebEngineCertificateError.Type.CertificateRevoked
The certificate has been revoked.
QWebEngineCertificateError.Type.CertificateInvalid
The certificate is invalid.
QWebEngineCertificateError.Type.CertificateWeakSignatureAlgorithm
The certificate is signed using a weak signature algorithm.
QWebEngineCertificateError.Type.CertificateNonUniqueName
The host name specified in the certificate is not unique.
QWebEngineCertificateError.Type.CertificateWeakKey
The certificate contains a weak key.
QWebEngineCertificateError.Type.CertificateNameConstraintViolation
The certificate claimed DNS names that are in violation of name constraints.
QWebEngineCertificateError.Type.CertificateValidityTooLong
The certificate has a validity period that is too long.
QWebEngineCertificateError.Type.CertificateTransparencyRequired
Certificate Transparency was required for this connection, but the server did not provide CT information that complied with the policy.
QWebEngineCertificateError.Type.CertificateKnownInterceptionBlocked
The certificate is known to be used for interception by an entity other the device owner.
QWebEngineCertificateError.Type.SslObsoleteVersion
The connection uses an obsolete version of SSL/TLS.
QWebEngineCertificateError.Type.CertificateSymantecLegacy
The certificate is a legacy Symantec one that’s no longer valid.
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property descriptionᅟ: str¶
This property holds A short localized human-readable description of the error..
See also
- Access functions:
- property isMainFrameᅟ: bool¶
Returns whether the certificate error comes from the main frame. If false, the error comes from a sub-resource and most likely needs to be rejected without user input.
- Access functions:
- property overridableᅟ: bool¶
This property holds Whether this error can be overridden and accepted..
See also
- Access functions:
- property typeᅟ: QWebEngineCertificateError.Type¶
This property holds The type of the error..
See also
- Access functions:
This property holds The URL that triggered the error..
See also
- Access functions:
- __init__()¶
- __init__(other)
- Parameters:
other –
QWebEngineCertificateError
- acceptCertificate()¶
Accepts the certificate and continues the loading of the requested URL.
- certificateChain()¶
- Return type:
.list of QSslCertificate
Returns the peer’s chain of digital certificates.
Chain starts with the peer’s immediate certificate and ending with the CA’s certificate.
- defer()¶
Marks the certificate error for delayed handling.
This function should be called when there is a need to postpone the decision whether to accept a certificate, for example, while waiting for user input. When called, the function pauses the URL request until
acceptCertificate()orrejectCertificate()is called.- description()¶
- Return type:
str
Getter of property
descriptionᅟ.- isMainFrame()¶
- Return type:
bool
Getter of property
isMainFrameᅟ.- isOverridable()¶
- Return type:
bool
Getter of property
overridableᅟ.- rejectCertificate()¶
Rejects the certificate and aborts the loading of the requested URL.
Getter of property
typeᅟ.Getter of property
urlᅟ.