:right-sidebar: True CertificateExtensionBasicConstraints =================================================================== .. currentmodule:: gi.repository.Gcr .. versionadded:: 4.3.90 .. class:: CertificateExtensionBasicConstraints(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gcr.CertificateExtension`, :class:`~gi.repository.GObject.Object` A certificate extension that can be used to identify the type of the certificate subject (whether it is a certificate authority or not). Methods ------- .. rst-class:: interim-class .. class:: CertificateExtensionBasicConstraints :no-index: .. method:: get_path_len_constraint() -> int Returns the maximum number of CAs that are allowed in the chain below this certificate. If this is not set, this method returns -1. Note that this field doesn't really make sense if :obj:`~gi.repository.Gcr.CertificateExtensionBasicConstraints.is_ca` is false. .. method:: is_ca() -> bool Returns whether the certificate us a certificate authority (CA) certificate or an end entity certificate.