CipherContext
Object Hierarchy:
Description:
[ CCode ( type_id = "camel_cipher_context_get_type ()" ) ]
public class CipherContext : Object
Content:
Properties:
Creation methods:
Methods:
- public async CipherValidity decrypt (MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously decrypts ipart
into opart
.
- public virtual CipherValidity decrypt_sync (MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Decrypts ipart
into opart
.
- public async bool encrypt (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously encrypts (and optionally signs) the clear-text
ipart
and writes the resulting cipher-text to opart
.
- public virtual bool encrypt_sync (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Encrypts (and optionally signs) the clear-text ipart
and
writes the resulting cipher-text to opart
.
- public unowned Session get_session ()
- public virtual unowned string hash_to_id (CipherHash hash)
- public virtual CipherHash id_to_hash (string id)
- public async bool sign (string userid, CipherHash hash, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously converts the (unsigned) part ipart
into a
new self-contained MIME part opart
.
- public virtual bool sign_sync (string userid, CipherHash hash, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Converts the (unsigned) part ipart
into a new
self-contained MIME part opart
.
- public async CipherValidity verify (MimePart ipart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously verifies the signature.
- public virtual CipherValidity verify_sync (MimePart ipart, Cancellable? cancellable = null) throws Error
Verifies the signature.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref