Camel.SMIMEContext

g Camel.CipherContext Camel.CipherContext Camel.SMIMEContext Camel.SMIMEContext Camel.CipherContext->Camel.SMIMEContext GObject.Object GObject.Object GObject.Object->Camel.CipherContext

Subclasses:

None

Methods

Inherited:

Camel.CipherContext (17), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (session)

class

util_nss_error_to_string (nss_error_code)

describe_part (part)

set_encrypt_key (use, key)

set_sign_mode (type)

Virtual Methods

Inherited:

Camel.CipherContext (6), GObject.Object (7)

Properties

Inherited:

Camel.CipherContext (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Camel.CipherContext

r

Class Details

class Camel.SMIMEContext(**kwargs)
Bases:

Camel.CipherContext

Abstract:

No

Structure:

Camel.SMIMEContextClass

classmethod new(session)
Parameters:

session (Camel.Session) – session

Returns:

a new sm cipher context object.

Return type:

Camel.CipherContext

Creates a new sm cipher context object.

classmethod util_nss_error_to_string(nss_error_code)
Parameters:

nss_error_code (int) – an error code, as returned by PORT_GetError()

Returns:

a localized text description of the nss_error_code, or None, when the code is unknown or the library was not compiled with S/MIME support.

Return type:

str or None

Utility function to get a localized text description for an error code returned by PORT_GetError().

Note: the function returns always None when the library was not compiled with S/MIME support.

New in version 3.52.

describe_part(part)
Parameters:

part (object or None) –

Return type:

int

set_encrypt_key(use, key)
Parameters:
set_sign_mode(type)
Parameters:

type (Camel.SMIMESign) –