Accounts.AuthData

Fields

None

Methods

get_credentials_id ()

get_login_parameters (extra_parameters)

get_mechanism ()

get_method ()

get_parameters ()

insert_parameters (parameters)

ref ()

unref ()

Details

class Accounts.AuthData

Opaque structure. Use related accessor functions.

get_credentials_id()
Returns:

the credentials ID.

Return type:

int

Gets the ID of the credentials associated with this account.

New in version 1.1.

get_login_parameters(extra_parameters)
Parameters:

extra_parameters (GLib.Variant or None) – a GLib.Variant containing client-specific authentication parameters to be added to the returned dictionary.

Returns:

a floating GLib.Variant of type %G_VARIANT_TYPE_VARDICT containing all the authentication parameters.

Return type:

GLib.Variant

Gets the authentication parameters.

New in version 1.4.

get_mechanism()
Returns:

the authentication mechanism.

Return type:

str

Gets the authentication mechanism.

get_method()
Returns:

the authentication method.

Return type:

str

Gets the authentication method.

get_parameters()
Returns:

a GLib.HashTable containing all the authentication parameters.

Return type:

{str: GObject.Value}

Gets the authentication parameters.

Deprecated since version 1.4: use Accounts.AuthData.get_login_parameters() instead.

insert_parameters(parameters)
Parameters:

parameters ({str: GObject.Value}) – a GLib.HashTable containing the authentication parameters to be added.

Insert the given authentication parameters into the authentication data. If some parameters were already present, the parameters passed with this method take precedence.

Deprecated since version 1.4: use Accounts.AuthData.get_login_parameters() instead.

ref()
Returns:

self.

Return type:

Accounts.AuthData

Increment the reference count of self.

unref()

Decrements the reference count of self. The item is destroyed when the count gets to 0.