EDataServer.SourceCredentialsProvider
Description: Reference for EDataServer.SourceCredentialsProvider

### Class

# EDataServerSourceCredentialsProvider

since: 3.16

#### Description [src]

    class EDataServer.SourceCredentialsProvider : GObject.Object
      implements EDataServer.Extensible {
      /* No available fields */
    }

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

Available since: 3.16

#### Hierarchy

#### Ancestors

- GObject

#### Implements

- EExtensible

#### Constructors

###### e_source_credentials_provider_new

Creates a new `ESourceCredentialsProvider`, which is meant to abstract credential management for `ESource`-s.

since: 3.16

#### Instance methods

###### e_source_credentials_provider_can_prompt

Returns whether a credentials prompt can be shown for the `source`.

since: 3.16

###### e_source_credentials_provider_can_store

Returns whether the `source` can store its credentials. When `FALSE` is returned, an attempt to call `e_source_credentials_provider_store()` or `e_source_credentials_provider_store_sync()` will fail for this `source`.

since: 3.16

###### e_source_credentials_provider_delete

Asynchronously deletes any previously stored credentials for `source`.

since: 3.16

###### e_source_credentials_provider_delete_finish

Finishes the operation started with e_source_credentials_provider_delete().

since: 3.16

###### e_source_credentials_provider_delete_sync

Deletes any previously stored credentials for `source`.

since: 3.16

###### e_source_credentials_provider_lookup

Asynchronously looks up for credentials for `source`.

since: 3.16

###### e_source_credentials_provider_lookup_finish

Finishes the operation started with e_source_credentials_provider_lookup().

since: 3.16

###### e_source_credentials_provider_lookup_sync

Looks up the credentials for `source`.

since: 3.16

###### e_source_credentials_provider_ref_credentials_source

Returns a referenced parent `ESource`, which holds the credentials for the given `source`. This is useful for collections, where the credentials are usually stored on the collection source, thus shared between child sources. When ther eis no such parent source, a `NULL` is returned, which means the `source` holds credentials for itself.

since: 3.16

###### e_source_credentials_provider_ref_registry

Returns refenrenced registry associated with this `provider`.

since: 3.16

###### e_source_credentials_provider_ref_source

Returns referenced `ESource` with the given `uid`, or `NULL`, when it could not be found.

since: 3.16

###### e_source_credentials_provider_register_impl

Registers a credentials provider implementation and adds its own reference on the `provider_impl`.

since: 3.16

###### e_source_credentials_provider_store

Asynchronously stores the `credentials` for `source`. Note the actual stored values can differ for each storage. In other words, not all named parameters are stored for each `source`.

since: 3.16

###### e_source_credentials_provider_store_finish

Finishes the operation started with e_source_credentials_provider_store().

since: 3.16

###### e_source_credentials_provider_store_sync

Stores the `credentials` for `source`. Note the actual stored values can differ for each storage. In other words, not all named parameters are stored for each `source`.

since: 3.16

###### e_source_credentials_provider_unregister_impl

Unregisters previously registered `provider_impl` with e_source_credentials_provider_register_impl(). Function does nothing, when the `provider_impl` is not registered.

since: 3.16

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

Please see GObject for a full list of methods.

##### Methods inherited from EExtensible (3)

###### e_extensible_list_extensions

Returns a list of `EExtension` objects bound to `extensible` whose types are ancestors of `extension_type`. For a complete list of extension objects bound to `extensible`, pass `E_TYPE_EXTENSION`.

since: 3.4

###### e_extensible_load_extensions

Creates an instance of all instantiable subtypes of `EExtension` which target the class of `extensible`. The lifetimes of these newly created `EExtension` objects are bound to `extensible` such that they are finalized when `extensible` is finalized.

since: 3.4

###### e_extensible_reload_extensions

Similar to e_extensible_load_extensions(), only loads newly discovered extensions again. This can help in case a new module had been loaded to the process, which provides the extensions for the `extensible`.

since: 3.46

#### Properties

###### EDataServer.SourceCredentialsProvider:registry

The Source Registry object, which can be either `ESourceregistry` or `ESourceRegistryServer`.

#### 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 EDataServerSourceCredentialsProviderClass {
      GObjectClass parent_class;
      ESource* (* ref_source) (
        ESourceCredentialsProvider* provider,
        const gchar* uid
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.

`ref_source: ESource* (* ref_source) ( ESourceCredentialsProvider* provider, const gchar* uid )`

  No description available.

#### Virtual methods

###### EDataServer.SourceCredentialsProviderClass.ref_source

Returns referenced `ESource` with the given `uid`, or `NULL`, when it could not be found.

since: 3.16