GMime.MultipartSigned

g GMime.Multipart GMime.Multipart GMime.MultipartSigned GMime.MultipartSigned GMime.Multipart->GMime.MultipartSigned GMime.Object GMime.Object GMime.Object->GMime.Multipart GObject.Object GObject.Object GObject.Object->GMime.Object

Subclasses:

None

Methods

Inherited:

GMime.Multipart (20), GMime.Object (28), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

class

sign (ctx, entity, userid)

verify (flags)

Virtual Methods

Inherited:

GMime.Multipart (11), GMime.Object (8), GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_object

GMime.Multipart

r

parent GMime.Multipart

Class Details

class GMime.MultipartSigned(**kwargs)
Bases:

GMime.Multipart

Abstract:

No

Structure:

GMime.MultipartSignedClass

A multipart/signed MIME part.

classmethod new()
Returns:

an empty MIME multipart/signed object.

Return type:

GMime.MultipartSigned

Creates a new MIME multipart/signed object.

classmethod sign(ctx, entity, userid)
Parameters:
Raises:

GLib.Error

Returns:

a new GMime.MultipartSigned object on success or None on fail. If signing fails, an exception will be set on err to provide information as to why the failure occurred.

Return type:

GMime.MultipartSigned or None

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) – a GMime.VerifyFlags

Raises:

GLib.Error

Returns:

a new GMime.SignatureList object on success or None on fail. If the verification fails, an exception will be set on err to provide information as to why the failure occurred.

Return type:

GMime.SignatureList or None

Attempts to verify the signed MIME part contained within the multipart/signed object self.