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.Certificate
objects.- 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.Certificate
to theGMime.CertificateList
.
- clear()¶
Clears the list of certificates.
- contains(cert)¶
- Parameters:
cert (
GMime.Certificate
) – aGMime.Certificate
- Returns:
True
if the specifiedGMime.Certificate
is contained within the specifiedGMime.CertificateList
orFalse
otherwise.- Return type:
Checks whether or not the specified
GMime.Certificate
is contained within theGMime.CertificateList
.
- get_certificate(index)¶
- Parameters:
index (
int
) – index ofGMime.Certificate
to get- Returns:
the
GMime.Certificate
at the specified index orNone
if the index is out of range.- Return type:
Gets the
GMime.Certificate
at the specified index.
- index_of(cert)¶
- Parameters:
cert (
GMime.Certificate
) – aGMime.Certificate
- Returns:
the index of the requested
GMime.Certificate
within theGMime.CertificateList
or %-1 if it is not contained within theGMime.CertificateList
.- Return type:
Gets the index of the specified
GMime.Certificate
inside theGMime.CertificateList
.
- insert(index, cert)¶
- Parameters:
index (
int
) – index to insert atcert (
GMime.Certificate
) – aGMime.Certificate
Inserts a
GMime.Certificate
into theGMime.CertificateList
at the specified index.
- length()¶
- Returns:
the number of
GMime.Certificate
objects in the list.- Return type:
Gets the length of the list.
- remove(cert)¶
- Parameters:
cert (
GMime.Certificate
) – aGMime.Certificate
- Returns:
True
if the specifiedGMime.Certificate
was removed orFalse
otherwise.- Return type:
Removes a
GMime.Certificate
from theGMime.CertificateList
.
- remove_at(index)¶
- Parameters:
index (
int
) – index of the certificate to remove- Returns:
True
if aGMime.Certificate
was removed orFalse
otherwise.- Return type:
Removes a
GMime.Certificate
from theGMime.CertificateList
at the specified index.
- set_certificate(index, cert)¶
- Parameters:
index (
int
) – index ofGMime.Certificate
to setcert (
GMime.Certificate
) – aGMime.Certificate
Sets the
GMime.Certificate
at the specified index to cert.