AutocryptHeader
Object Hierarchy:
Description:
[ CCode ( type_id = "g_mime_autocrypt_header_get_type ()" ) ]
public class AutocryptHeader : Object
An object containing Autocrypt information about a given e-mail address, as derived from a message header.
See https://autocrypt.org/ for details and motivation.
Content:
Creation methods:
Methods:
- public void clone (AutocryptHeader src)
If address and type already match between src
and
this, copy keydata, prefer_encrypt, effective_date from src
to
this.
- public int compare (AutocryptHeader ah2)
Compare two Autocrypt Headers.
- public unowned InternetAddressMailbox get_address ()
Gets the internal address of the Autocrypt header, or
null if not set.
- public unowned string get_address_as_string ()
Gets the internal address of the Autocrypt header as a C string, or
null if not set.
- public unowned DateTime get_effective_date ()
Gets the effective date of the Autocrypt header, or
null if not set.
- public unowned Bytes get_keydata ()
Gets the raw keydata of the Autocrypt header, or
null if not set.
- public AutocryptPreferEncrypt get_prefer_encrypt ()
Gets the encryption preference stated by the Autocrypt header.
- public bool is_complete ()
When dealing with Autocrypt headers derived from a message, some
sender addresses will not have a legitimate/complete header associated with them.
- public void set_address (InternetAddressMailbox address)
Set the address associated with the autocrypt_header.
- public void set_address_from_string (string address)
Set the address associated with the autocrypt_header.
- public void set_effective_date (DateTime effective_date)
Set the effective date associated with the Autocrypt header.
- public void set_keydata (Bytes data)
Set the raw key data associated with the Autocrypt header.
- public void set_prefer_encrypt (AutocryptPreferEncrypt pref)
Set the encryption preference associated with the Autocrypt header.
- public string to_string (bool gossip)
Gets the string representation of the Autocrypt header, or
null on error.
Fields:
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