CipherContext
Object Hierarchy:
Description:
All known sub-classes:
Namespace: Camel
Package: camel-1.2
Content:
Properties:
Static methods:
- public static Quark error_quark ()
Creation methods:
- public CipherContext (Session? session)
This creates a new CamelCipherContext object which is used to sign, verify, encrypt and decrypt streams.
Methods:
- public async CipherValidity decrypt (MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously decrypts
ipartintoopart. - public virtual CipherValidity decrypt_sync (MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Decrypts
ipartintoopart. - public async bool encrypt (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously encrypts the clear-text
ipartand writes the resulting cipher-text toopart. - public virtual bool encrypt_sync (string? userid, GenericArray<string> recipients, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Encrypts the clear-text
ipartand writes the resulting cipher-text toopart. - 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
ipartinto a new self-contained MIME partopart. - public virtual bool sign_sync (string userid, CipherHash hash, MimePart ipart, MimePart opart, Cancellable? cancellable = null) throws Error
Converts the (unsigned) part
ipartinto a new self-contained MIME partopart. - 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