GMime.DecryptResult

g GMime.DecryptResult GMime.DecryptResult GObject.Object GObject.Object GObject.Object->GMime.DecryptResult

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_cipher ()

get_mdc ()

get_recipients ()

get_session_key ()

get_signatures ()

set_cipher (cipher)

set_mdc (mdc)

set_recipients (recipients)

set_session_key (session_key)

set_signatures (signatures)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

cipher

GMime.CipherAlgo

r

The cipher algorithm used to encrypt the stream.

mdc

GMime.DigestAlgo

r

The MDC digest algorithm used, if any.

parent_object

GObject.Object

r

parent GObject.Object

recipients

GMime.CertificateList

r

A GMime.CertificateList

session_key

str

r

The session key if requested or None otherwise.

signatures

GMime.SignatureList

r

A GMime.SignatureList if signed or None otherwise.

Class Details

class GMime.DecryptResult(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.DecryptResultClass

An object containing the results from decrypting an encrypted stream.

classmethod new()
Returns:

a new GMime.DecryptResult object.

Return type:

GMime.DecryptResult

Creates a new GMime.DecryptResult object.

get_cipher()
Returns:

the cipher algorithm used.

Return type:

GMime.CipherAlgo

Get the cipher algorithm used.

get_mdc()
Returns:

the mdc digest algorithm used.

Return type:

GMime.DigestAlgo

Get the mdc digest algorithm used.

get_recipients()
Returns:

a GMime.CertificateList.

Return type:

GMime.CertificateList

Gets the list of certificates that the stream had been encrypted to.

get_session_key()
Returns:

the session key digest algorithm used, or None if no session key was requested or found.

Return type:

str or None

Get the session key used for this decryption.

get_signatures()
Returns:

a GMime.SignatureList or None if the stream was not signed.

Return type:

GMime.SignatureList or None

Gets a list of signatures if the encrypted stream had also been signed.

set_cipher(cipher)
Parameters:

cipher (GMime.CipherAlgo) – a GMime.CipherAlgo

Set the cipher algorithm used.

set_mdc(mdc)
Parameters:

mdc (GMime.DigestAlgo) – a GMime.DigestAlgo

Set the mdc digest algorithm used.

set_recipients(recipients)
Parameters:

recipients (GMime.CertificateList) – A GMime.CertificateList

Sets the list of certificates that the stream had been encrypted to.

set_session_key(session_key)
Parameters:

session_key (str or None) – a string representing the session key or None to unset the key

Set the session key to be returned by this decryption result.

set_signatures(signatures)
Parameters:

signatures (GMime.SignatureList) – A GMime.SignatureList

Sets the list of signatures.