GpgContext
Object Hierarchy:
Description:
Namespace: Camel
Package: camel-1.2
Content:
Properties:
- public bool always_trust { get; set construct; }
- public bool locate_keys { get; set construct; }
- public bool prefer_inline { get; set construct; }
Creation methods:
- public GpgContext (Session? session)
Creates a new gpg cipher context object.
Methods:
- public bool get_always_trust ()
- public bool get_key_data_info_sync (uint8 data, size_t data_size, uint32 flags, out SList<GpgKeyInfo> out_infos, Cancellable? cancellable = null) throws Error
Receives information about a key stored in
data
of sizedata_size
. - public bool get_locate_keys ()
Returns, whether gpg can locate keys using Web Key Directory (WKD) lookup when encrypting messages.
- public bool get_prefer_inline ()
- public bool get_public_key_info_sync (string keyid, uint32 flags, out SList<GpgKeyInfo> out_infos, Cancellable? cancellable = null) throws Error
Receives information about a key
keyid
. - public bool get_public_key_sync (string keyid, uint32 flags, out uint8 out_data, out size_t out_data_size, Cancellable? cancellable = null) throws Error
Returns a public key with
keyid
. - public bool has_public_key_sync (string keyid, Cancellable? cancellable = null) throws Error
Checks whether there exists a public key with
keyid
. - public bool import_key_sync (uint8 data, size_t data_size, uint32 flags, Cancellable? cancellable = null) throws Error
Imports a (public) key provided in a binary form stored in the
data
of sizedata_size
. - public void set_always_trust (bool always_trust)
Sets the
always_trust
flag on the gpg context which is used for encryption. - public bool set_key_trust_sync (string keyid, GpgTrust trust, Cancellable? cancellable = null) throws Error
Sets
trust
level on the keykeyid
. - public void set_locate_keys (bool locate_keys)
Sets the
locate_keys
on the gpg context which is used to instruct gpg to locate keys using Web Key Directory (WKD) lookup when encrypting messages. - public void set_prefer_inline (bool prefer_inline)
Sets the
prefer_inline
flag on the gpg context.
Inherited Members:
All known members inherited from class Camel.CipherContext
All known members inherited from class GLib.Object