GpgContext
Object Hierarchy:
Description:
[
CCode ( type_id =
"camel_gpg_context_get_type ()" ) ]
public class GpgContext :
CipherContext
Content:
Properties:
Creation methods:
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 size
data_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 size data_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 key keyid.
- 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