get_secrets


Description:

public Variant get_secrets (string setting_name, Cancellable? cancellable = null) throws Error

Request the connection's secrets.

Note that this is a blocking D-Bus call, not a simple property accessor.

Parameters:

this

the RemoteConnection

setting_name

the Setting object name to get secrets for

cancellable

a Cancellable, or null

Returns:

a Variant of type nm_variant_type_connection containing this's secrets, or null on error.

Warning: NMClient contains a cache of objects on D-Bus. This cache gets updated with D-Bus signals when iterating the GMainContext. This function performs a (pseudo) blocking D-Bus call. Aside blocking, the result will not be in sync and not be ordered with the content of the NMClient cache. This function used to be deprecated between 1.22 and 1.38 releases.