:right-sidebar: True CertificateExtension =================================================================== .. currentmodule:: gi.repository.Gcr .. versionadded:: 4.3.90 .. class:: CertificateExtension(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.Gcr.CertificateExtensionAuthorityInfoAccess`, :class:`~gi.repository.Gcr.CertificateExtensionAuthorityKeyIdentifier`, :class:`~gi.repository.Gcr.CertificateExtensionBasicConstraints`, :class:`~gi.repository.Gcr.CertificateExtensionCertificatePolicies`, :class:`~gi.repository.Gcr.CertificateExtensionCrlDistributionPoints`, :class:`~gi.repository.Gcr.CertificateExtensionExtendedKeyUsage`, :class:`~gi.repository.Gcr.CertificateExtensionKeyUsage`, :class:`~gi.repository.Gcr.CertificateExtensionSubjectAltName`, :class:`~gi.repository.Gcr.CertificateExtensionSubjectKeyIdentifier` An object that describes a certificate extension. By default, a certificate extension exposes 3 things: an OID, whether it's marked as critical, and the raw value. For known extensions, gcr tries to provide subclasses with the appropriate API. See also :obj:`~gi.repository.Certificate.list_extensions`\. Methods ------- .. rst-class:: interim-class .. class:: CertificateExtension :no-index: .. method:: get_description() -> str | None Returns a user-displayable description of the OID that identifies the extension, if known. .. versionadded:: 4.3.90 .. method:: get_oid() -> str Returns the OID that identifies the extension .. versionadded:: 4.3.90 .. method:: get_value() -> ~gi.repository.GLib.Bytes Returns the raw value in bytes of the extension. .. versionadded:: 4.3.90 .. method:: is_critical() -> bool Returns wether the certificate extension is marked critical. Properties ---------- .. rst-class:: interim-class .. class:: CertificateExtension :no-index: .. attribute:: props.critical :type: bool Whether this certificate is critical. .. attribute:: props.oid :type: str The Object Identifier (OID) that identifies the extension. .. attribute:: props.value :type: ~gi.repository.GLib.Bytes The raw value in bytes of the extension. Fields ------ .. rst-class:: interim-class .. class:: CertificateExtension :no-index: .. attribute:: parent_instance