PythonQt.Qt.QSslCertificateExtension
QSslCertificateExtension
PythonQtInstanceWrapper object
Native bases: PythonQtInstanceWrapper
Supplemental documentation: Qt 5 reference:
Detailed Description
QSslCertificateExtension provides access to an extension stored in an X509 certificate. The information available depends on the type of extension being accessed.
All X509 certificate extensions have the following properties:
| Property | Description |
|---|---|
| name | The human readable name of the extension, eg. 'basicConstraints'. |
| criticality | This is a boolean value indicating if the extension is critical to correctly interpreting the certificate. |
| oid | The ASN.1 object identifier that specifies which extension this is. |
| supported | If this is true the structure of the extension's value will not change between Qt versions. |
| value | A QVariant with a structure dependent on the type of extension. |
Whilst this class provides access to any type of extension, only some are guaranteed to
be returned in a format that will remain unchanged between releases. The
isSupported()
method returns true for extensions where this is the case.
The extensions currently supported, and the structure of the value returned are as follows:
| Name | OID | Details |
|---|---|---|
| basicConstraints | 2.5.29.19 | Returned as a QVariantMap. The key 'ca' contains a boolean value, the optional key 'pathLenConstraint' contains an integer. |
| authorityInfoAccess | 1.3.6.1.5.5.7.1.1 | Returned as a QVariantMap. There is a key for each access method, with the value being a URI. |
| subjectKeyIdentifier | 2.5.29.14 | Returned as a QVariant containing a QString. The string is the key identifier. |
| authorityKeyIdentifier | 2.5.29.35 | Returned as a QVariantMap. The optional key 'keyid' contains the key identifier as a hex string stored in a QByteArray. The optional key 'serial' contains the authority key serial number as a qlonglong. Currently there is no support for the general names field of this extension. |
In addition to the supported extensions above, many other common extensions will be returned in a reasonably structured way. Extensions that the SSL backend has no support for at all will be returned as a QByteArray.
Further information about the types of extensions certificates can contain can be found in RFC 5280.
Source: https://doc.qt.io/archives/qt-5.15/qsslcertificateextension.html
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, *args: Any, **kwargs: Any) -> None |
Native constructor; consult class documentation for supported overloads. (shared captured text) |
className |
function | (self, *args: Any, **kwargs: Any) -> Any |
Return the classname of the object (shared captured text) |
delete |
function | (self, *args: Any, **kwargs: Any) -> Any |
Deletes the C++ object (at your own risk, my friend!) (shared captured text) |
help |
function | (self, *args: Any, **kwargs: Any) -> Any |
Shows the help of available methods for this class (shared captured text) |
inherits |
function | (self, *args: Any, **kwargs: Any) -> Any |
Returns if the class inherits or is of given type name (shared captured text) |
isCritical |
function | (self) -> bool |
X.isCritical() -> bool (shared captured text) |
isSupported |
function | (self) -> bool |
X.isSupported() -> bool (shared captured text) |
name |
function | (self) -> str |
X.name() -> str (shared captured text) |
oid |
function | (self) -> str |
X.oid() -> str (shared captured text) |
operator_assign |
function | (self, other: Any) -> Any |
X.operator_assign(other) -> PythonQt.QtNetwork.QSslCertificateExtension (shared captured text) |
swap |
function | (self, other: Any) -> None |
Swaps this certificate extension instance with other. (shared captured text) |
value |
function | (self) -> Any |
X.value() -> object (shared captured text) |