Class
CamelCipherContext
Constructors
camel_cipher_context_new
This creates a new CamelCipherContext object which is used to sign, verify, encrypt and decrypt streams.
Instance methods
camel_cipher_context_decrypt_finish
Finishes the operation started with camel_cipher_context_decrypt().
since: 3.0
camel_cipher_context_encrypt
Asynchronously encrypts the clear-text ipart
and
writes the resulting cipher-text to opart
.
since: 3.0
camel_cipher_context_encrypt_finish
Finishes the operation started with camel_cipher_context_encrypt().
since: 3.0
camel_cipher_context_encrypt_sync
Encrypts the clear-text ipart
and writes the resulting cipher-text to opart
.
since: 3.0
camel_cipher_context_sign
Asynchronously converts the (unsigned) part ipart
into a new
self-contained MIME part opart
. This may be a multipart/signed part,
or a simple part for enveloped types.
since: 3.0
camel_cipher_context_sign_finish
Finishes the operation started with camel_cipher_context_sign().
since: 3.0
camel_cipher_context_sign_sync
Converts the (unsigned) part ipart
into a new self-contained MIME
part opart
. This may be a multipart/signed part, or a simple part
for enveloped types.
since: 3.0
camel_cipher_context_verify_finish
Finishes the operation started with camel_cipher_context_verify().
since: 3.0
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct CamelCipherContextClass {
GObjectClass parent_class;
const gchar* sign_protocol;
const gchar* encrypt_protocol;
const gchar* key_protocol;
CamelCipherHash (* id_to_hash) (
CamelCipherContext* context,
const gchar* id
);
const gchar* (* hash_to_id) (
CamelCipherContext* context,
CamelCipherHash hash
);
gboolean (* sign_sync) (
CamelCipherContext* context,
const gchar* userid,
CamelCipherHash hash,
CamelMimePart* ipart,
CamelMimePart* opart,
GCancellable* cancellable,
GError** error
);
CamelCipherValidity* (* verify_sync) (
CamelCipherContext* context,
CamelMimePart* ipart,
GCancellable* cancellable,
GError** error
);
gboolean (* encrypt_sync) (
CamelCipherContext* context,
const gchar* userid,
GPtrArray* recipients,
CamelMimePart* ipart,
CamelMimePart* opart,
GCancellable* cancellable,
GError** error
);
CamelCipherValidity* (* decrypt_sync) (
CamelCipherContext* context,
CamelMimePart* ipart,
CamelMimePart* opart,
GCancellable* cancellable,
GError** error
);
None reserved;
}
Class members
parent_class: GObjectClass
- No description available.
sign_protocol: const gchar*
- No description available.
encrypt_protocol: const gchar*
- No description available.
key_protocol: const gchar*
- No description available.
id_to_hash: CamelCipherHash (* id_to_hash) ( CamelCipherContext* context, const gchar* id )
- No description available.
hash_to_id: const gchar* (* hash_to_id) ( CamelCipherContext* context, CamelCipherHash hash )
- No description available.
sign_sync: gboolean (* sign_sync) ( CamelCipherContext* context, const gchar* userid, CamelCipherHash hash, CamelMimePart* ipart, CamelMimePart* opart, GCancellable* cancellable, GError** error )
- No description available.
verify_sync: CamelCipherValidity* (* verify_sync) ( CamelCipherContext* context, CamelMimePart* ipart, GCancellable* cancellable, GError** error )
- No description available.
encrypt_sync: gboolean (* encrypt_sync) ( CamelCipherContext* context, const gchar* userid, GPtrArray* recipients, CamelMimePart* ipart, CamelMimePart* opart, GCancellable* cancellable, GError** error )
- No description available.
decrypt_sync: CamelCipherValidity* (* decrypt_sync) ( CamelCipherContext* context, CamelMimePart* ipart, CamelMimePart* opart, GCancellable* cancellable, GError** error )
- No description available.
reserved: None
- No description available.
Virtual methods
Camel.CipherContextClass.encrypt_sync
Encrypts the clear-text ipart
and writes the resulting cipher-text to opart
.
since: 3.0
Camel.CipherContextClass.sign_sync
Converts the (unsigned) part ipart
into a new self-contained MIME
part opart
. This may be a multipart/signed part, or a simple part
for enveloped types.
since: 3.0