Gcr.CertificateExtensionBasicConstraints

g GObject.Object GObject.Object Gcr.CertificateExtension Gcr.CertificateExtension GObject.Object->Gcr.CertificateExtension Gcr.CertificateExtensionBasicConstraints Gcr.CertificateExtensionBasicConstraints Gcr.CertificateExtension->Gcr.CertificateExtensionBasicConstraints

Subclasses:

None

Methods

Inherited:

Gcr.CertificateExtension (4), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_path_len_constraint ()

is_ca ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Gcr.CertificateExtension (3)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gcr.CertificateExtensionBasicConstraints(**kwargs)
Bases:

Gcr.CertificateExtension

Abstract:

No

Structure:

Gcr.CertificateExtensionBasicConstraintsClass

A certificate extension that can be used to identify the type of the certificate subject (whether it is a certificate authority or not).

New in version 4.3.90.

get_path_len_constraint()[source]
Returns:

The value of “pathLenConstraint”, or -1 if not set.

Return type:

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 [method`Gcr`.CertificateExtensionBasicConstraints.is_ca] is false.

is_ca()[source]
Returns:

The value of “cA”.

Return type:

bool

Returns whether the certificate us a certificate authority (CA) certificate or an end entity certificate.