EDataServer.SourceOpenPGP
Description: Reference for EDataServer.SourceOpenPGP

### Class

# EDataServerSourceOpenPGP

since: 3.6

#### Description [src]

    class EDataServer.SourceOpenPGP : EDataServer.SourceExtension
    {
      /* No available fields */
    }

Contains only private data that should be read and manipulated using the functions below.

Available since: 3.6

#### Hierarchy

#### Ancestors

- ESourceExtension
- GObject

#### Instance methods

###### e_source_openpgp_dup_key_id

Thread-safe variation of e_source_openpgp_get_key_id(). Use this function when accessing `extension` from multiple threads.

since: 3.6

###### e_source_openpgp_dup_signing_algorithm

Thread-safe variation of e_source_openpgp_get_signing_algorithm(). Use this function when accessing `extension` from multiple threads.

since: 3.6

###### e_source_openpgp_get_always_trust

Returns whether to skip key validation and assume that used keys are always fully trusted.

since: 3.6

###### e_source_openpgp_get_ask_send_public_key

Returns, whether should ask before sending PGP public key in messages. The default is `TRUE`.

since: 3.52

###### e_source_openpgp_get_encrypt_by_default

Returns whether to digitally encrypt outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).

since: 3.18

###### e_source_openpgp_get_encrypt_to_self

Returns whether to “encrypt-to-self” when sending encrypted messages.

since: 3.6

###### e_source_openpgp_get_key_id

Returns the OpenPGP key ID used to sign and encrypt messages.

since: 3.6

###### e_source_openpgp_get_locate_keys

Returns, whether gpg can locate keys using Web Key Directory (WKD) lookup when encrypting messages. The default is `TRUE`.

since: 3.46

###### e_source_openpgp_get_prefer_inline

Returns whether to prefer inline sign/encrypt of the text/plain messages.

since: 3.20

###### e_source_openpgp_get_send_prefer_encrypt

Returns, whether should claim the encryption is preferred when sending public key in messages. The default is `TRUE`.

since: 3.50

###### e_source_openpgp_get_send_public_key

Returns, whether should send PGP public key in messages. The default is `TRUE`.

since: 3.50

###### e_source_openpgp_get_sign_by_default

Returns whether to digitally sign outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).

since: 3.6

###### e_source_openpgp_get_signing_algorithm

Returns the name of the hash algorithm used to digitally sign outgoing messages.

since: 3.6

###### e_source_openpgp_set_always_trust

Sets whether to skip key validation and assume that used keys are always fully trusted.

since: 3.6

###### e_source_openpgp_set_ask_send_public_key

Sets the `ask_send_public_key` on the `extension`, which tells the client to ask before user sends public key in the messages in an Autocrypt header.

since: 3.52

###### e_source_openpgp_set_encrypt_by_default

Sets whether to digitally encrypt outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).

since: 3.18

###### e_source_openpgp_set_encrypt_to_self

Sets whether to “encrypt-to-self” when sending encrypted messages.

since: 3.6

###### e_source_openpgp_set_key_id

Sets the OpenPGP key ID used to sign and encrypt messages.

since: 3.6

###### e_source_openpgp_set_locate_keys

Sets the `locate_keys` on the `extension`, which is used to instruct gpg to locate keys using Web Key Directory (WKD) lookup when encrypting messages.

since: 3.46

###### e_source_openpgp_set_prefer_inline

Sets whether to prefer inline sign/encrypt of the text/plain messages.

since: 3.20

###### e_source_openpgp_set_send_prefer_encrypt

Sets the `send_prefer_encrypt` on the `extension`, which tells the client to claim the user prefer encryption when also sending its public key in the messages (e_source_openpgp_set_send_public_key()).

since: 3.50

###### e_source_openpgp_set_send_public_key

Sets the `send_public_key` on the `extension`, which tells the client to include user’s public key in the messages in an Autocrypt header.

since: 3.50

###### e_source_openpgp_set_sign_by_default

Sets whether to digitally sign outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).

since: 3.6

###### e_source_openpgp_set_signing_algorithm

Sets the name of the hash algorithm used to digitally sign outgoing messages.

since: 3.6

##### Methods inherited from ESourceExtension (4)

###### e_source_extension_get_source

Returns the `ESource` instance to which `extension` belongs.

deprecated: 3.8 since: 3.6

###### e_source_extension_property_lock

Acquires a property lock, thus no other thread can change properties of the `extension` until the lock is released.

since: 3.18

###### e_source_extension_property_unlock

Releases a property lock, previously acquired with e_source_extension_property_lock(), thus other threads can change properties of the `extension`.

since: 3.18

###### e_source_extension_ref_source

Returns the `ESource` instance to which the `extension` belongs.

since: 3.8

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### EDataServer.SourceOpenPGP:always-trust

Always trust keys in my keyring.

###### EDataServer.SourceOpenPGP:ask-send-public-key

Ask before sending public key in messages.

###### EDataServer.SourceOpenPGP:encrypt-by-default

Encrypt outgoing messages by default.

###### EDataServer.SourceOpenPGP:encrypt-to-self

Always encrypt to myself.

###### EDataServer.SourceOpenPGP:key-id

PGP/GPG Key ID.

###### EDataServer.SourceOpenPGP:locate-keys

Locate keys in WKD for encryption.

###### EDataServer.SourceOpenPGP:prefer-inline

Prefer inline sign/encrypt.

###### EDataServer.SourceOpenPGP:send-prefer-encrypt

Send whether prefers encryption together with the public key in messages.

###### EDataServer.SourceOpenPGP:send-public-key

Send public key in messages.

###### EDataServer.SourceOpenPGP:sign-by-default

Sign outgoing messages by default.

###### EDataServer.SourceOpenPGP:signing-algorithm

Hash algorithm used to sign messages.

##### Properties inherited from ESourceExtension (1)

###### EDataServer.SourceExtension:source

The `ESource` being extended.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct EDataServerSourceOpenPGPClass {
      ESourceExtensionClass parent_class;

    }

No description available.

###### Class members

`parent_class: ESourceExtensionClass`

  No description available.