GMime.CertificateList

g GMime.CertificateList GMime.CertificateList GObject.Object GObject.Object GObject.Object->GMime.CertificateList

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add (cert)

clear ()

contains (cert)

get_certificate (index)

index_of (cert)

insert (index, cert)

length ()

remove (cert)

remove_at (index)

set_certificate (index, cert)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

array

[object]

r

An array of GMime.Certificate objects.

parent_object

GObject.Object

r

parent GObject.Object

Class Details

class GMime.CertificateList(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.CertificateListClass

A collection of GMime.Certificate objects.

classmethod new()
Returns:

a new GMime.CertificateList.

Return type:

GMime.CertificateList

Creates a new GMime.CertificateList.

add(cert)
Parameters:

cert (GMime.Certificate) – a GMime.Certificate

Returns:

the index of the added GMime.Certificate.

Return type:

int

Adds a GMime.Certificate to the GMime.CertificateList.

clear()

Clears the list of certificates.

contains(cert)
Parameters:

cert (GMime.Certificate) – a GMime.Certificate

Returns:

True if the specified GMime.Certificate is contained within the specified GMime.CertificateList or False otherwise.

Return type:

bool

Checks whether or not the specified GMime.Certificate is contained within the GMime.CertificateList.

get_certificate(index)
Parameters:

index (int) – index of GMime.Certificate to get

Returns:

the GMime.Certificate at the specified index or None if the index is out of range.

Return type:

GMime.Certificate

Gets the GMime.Certificate at the specified index.

index_of(cert)
Parameters:

cert (GMime.Certificate) – a GMime.Certificate

Returns:

the index of the requested GMime.Certificate within the GMime.CertificateList or %-1 if it is not contained within the GMime.CertificateList.

Return type:

int

Gets the index of the specified GMime.Certificate inside the GMime.CertificateList.

insert(index, cert)
Parameters:

Inserts a GMime.Certificate into the GMime.CertificateList at the specified index.

length()
Returns:

the number of GMime.Certificate objects in the list.

Return type:

int

Gets the length of the list.

remove(cert)
Parameters:

cert (GMime.Certificate) – a GMime.Certificate

Returns:

True if the specified GMime.Certificate was removed or False otherwise.

Return type:

bool

Removes a GMime.Certificate from the GMime.CertificateList.

remove_at(index)
Parameters:

index (int) – index of the certificate to remove

Returns:

True if a GMime.Certificate was removed or False otherwise.

Return type:

bool

Removes a GMime.Certificate from the GMime.CertificateList at the specified index.

set_certificate(index, cert)
Parameters:

Sets the GMime.Certificate at the specified index to cert.