Gcr.CertificateExtension

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

Subclasses:

Gcr.CertificateExtensionAuthorityInfoAccess, Gcr.CertificateExtensionAuthorityKeyIdentifier, Gcr.CertificateExtensionBasicConstraints, Gcr.CertificateExtensionCertificatePolicies, Gcr.CertificateExtensionCrlDistributionPoints, Gcr.CertificateExtensionExtendedKeyUsage, Gcr.CertificateExtensionKeyUsage, Gcr.CertificateExtensionSubjectAltName, Gcr.CertificateExtensionSubjectKeyIdentifier

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_description ()

get_oid ()

get_value ()

is_critical ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

critical

bool

r/w/co

oid

str

r

value

GLib.Bytes

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Gcr.CertificateExtension(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gcr.CertificateExtensionClass

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 [method`Certificate`.list_extensions].

New in version 4.3.90.

get_description()[source]
Returns:

A user-facing description, or null if unknown

Return type:

str or None

Returns a user-displayable description of the OID that identifies the extension, if known.

New in version 4.3.90.

get_oid()[source]
Return type:

str

Returns the OID that identifies the extension

New in version 4.3.90.

get_value()[source]
Returns:

The raw value date

Return type:

GLib.Bytes

Returns the raw value in bytes of the extension.

New in version 4.3.90.

is_critical()[source]
Returns:

true if the extension is marked critical

Return type:

bool

Returns wether the certificate extension is marked critical.

Property Details

Gcr.CertificateExtension.props.critical
Name:

critical

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Whether this certificate is critical.

Gcr.CertificateExtension.props.oid
Name:

oid

Type:

str

Default Value:

None

Flags:

READABLE

The Object Identifier (OID) that identifies the extension.

Gcr.CertificateExtension.props.value
Name:

value

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The raw value in bytes of the extension.