GMime.MultipartSigned¶
- Subclasses:
None
Methods¶
- Inherited:
GMime.Multipart (20), GMime.Object (29), GObject.Object (37)
- Structs:
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_object |
r |
parent |
Class Details¶
- class GMime.MultipartSigned(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A multipart/signed MIME part.
- classmethod new()¶
- Returns:
an empty MIME multipart/signed object.
- Return type:
Creates a new MIME multipart/signed object.
- classmethod sign(ctx, entity, userid)¶
- Parameters:
ctx (
GMime.CryptoContext
) – aGMime.CryptoContext
entity (
GMime.Object
) – MIME part to signuserid (
str
) – user id to sign with
- Raises:
- Returns:
a new
GMime.MultipartSigned
object on success orNone
on fail. If signing fails, an exception will be set on err to provide information as to why the failure occurred.- Return type:
Attempts to sign the content MIME part with userid's private key using the ctx signing context. If successful, a new multipart/signed object is returned.
- verify(flags)¶
- Parameters:
flags (
GMime.VerifyFlags
) – aGMime.VerifyFlags
- Raises:
- Returns:
a new
GMime.SignatureList
object on success orNone
on fail. If the verification fails, an exception will be set on err to provide information as to why the failure occurred.- Return type:
Attempts to verify the signed MIME part contained within the multipart/signed object self.