GMime.DecryptResult¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
cipher |
r |
The cipher algorithm used to encrypt the stream. |
|
mdc |
r |
The MDC digest algorithm used, if any. |
|
parent_object |
r |
parent |
|
recipients |
r |
||
session_key |
r |
The session key if requested or |
|
signatures |
r |
A |
Class Details¶
- class GMime.DecryptResult(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An object containing the results from decrypting an encrypted stream.
- classmethod new()¶
- Returns:
a new
GMime.DecryptResult
object.- Return type:
Creates a new
GMime.DecryptResult
object.
- get_cipher()¶
- Returns:
the cipher algorithm used.
- Return type:
Get the cipher algorithm used.
- get_mdc()¶
- Returns:
the mdc digest algorithm used.
- Return type:
Get the mdc digest algorithm used.
- get_recipients()¶
- Returns:
- Return type:
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:
Get the session key used for this decryption.
- get_signatures()¶
- Returns:
a
GMime.SignatureList
orNone
if the stream was not signed.- Return type:
Gets a list of signatures if the encrypted stream had also been signed.
- set_cipher(cipher)¶
- Parameters:
cipher (
GMime.CipherAlgo
) – aGMime.CipherAlgo
Set the cipher algorithm used.
- set_mdc(mdc)¶
- Parameters:
mdc (
GMime.DigestAlgo
) – aGMime.DigestAlgo
Set the mdc digest algorithm used.
- set_recipients(recipients)¶
- Parameters:
recipients (
GMime.CertificateList
) – AGMime.CertificateList
Sets the list of certificates that the stream had been encrypted to.
- set_session_key(session_key)¶
- Parameters:
session_key (
str
orNone
) – a string representing the session key orNone
to unset the key
Set the session key to be returned by this decryption result.
- set_signatures(signatures)¶
- Parameters:
signatures (
GMime.SignatureList
) – AGMime.SignatureList
Sets the list of signatures.