GMime.CertificateList¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
None
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
array  | 
[  | 
r  | 
An array of   | 
parent_object  | 
r  | 
parent   | 
Class Details¶
- class GMime.CertificateList(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A collection of
GMime.Certificateobjects.- classmethod new()¶
 - Returns:
 a new
GMime.CertificateList.- Return type:
 
Creates a new
GMime.CertificateList.
- add(cert)¶
 - Parameters:
 cert (
GMime.Certificate) – aGMime.Certificate- Returns:
 the index of the added
GMime.Certificate.- Return type:
 
Adds a
GMime.Certificateto theGMime.CertificateList.
- clear()¶
 Clears the list of certificates.
- contains(cert)¶
 - Parameters:
 cert (
GMime.Certificate) – aGMime.Certificate- Returns:
 Trueif the specifiedGMime.Certificateis contained within the specifiedGMime.CertificateListorFalseotherwise.- Return type:
 
Checks whether or not the specified
GMime.Certificateis contained within theGMime.CertificateList.
- get_certificate(index)¶
 - Parameters:
 index (
int) – index ofGMime.Certificateto get- Returns:
 the
GMime.Certificateat the specified index orNoneif the index is out of range.- Return type:
 
Gets the
GMime.Certificateat the specified index.
- index_of(cert)¶
 - Parameters:
 cert (
GMime.Certificate) – aGMime.Certificate- Returns:
 the index of the requested
GMime.Certificatewithin theGMime.CertificateListor %-1 if it is not contained within theGMime.CertificateList.- Return type:
 
Gets the index of the specified
GMime.Certificateinside theGMime.CertificateList.
- insert(index, cert)¶
 - Parameters:
 index (
int) – index to insert atcert (
GMime.Certificate) – aGMime.Certificate
Inserts a
GMime.Certificateinto theGMime.CertificateListat the specified index.
- length()¶
 - Returns:
 the number of
GMime.Certificateobjects in the list.- Return type:
 
Gets the length of the list.
- remove(cert)¶
 - Parameters:
 cert (
GMime.Certificate) – aGMime.Certificate- Returns:
 Trueif the specifiedGMime.Certificatewas removed orFalseotherwise.- Return type:
 
Removes a
GMime.Certificatefrom theGMime.CertificateList.
- remove_at(index)¶
 - Parameters:
 index (
int) – index of the certificate to remove- Returns:
 Trueif aGMime.Certificatewas removed orFalseotherwise.- Return type:
 
Removes a
GMime.Certificatefrom theGMime.CertificateListat the specified index.
- set_certificate(index, cert)¶
 - Parameters:
 index (
int) – index ofGMime.Certificateto setcert (
GMime.Certificate) – aGMime.Certificate
Sets the
GMime.Certificateat the specified index to cert.