SecretAgentOld
Object Hierarchy:
Description:
[
CCode ( type_id =
"nm_secret_agent_old_get_type ()" ) ]
public abstract class SecretAgentOld :
Object,
AsyncInitable,
Initable
Content:
Constants:
Properties:
- public bool auto_register { get; set construct; }
If true (the default), the agent
will always be registered when NetworkManager is running; if NetworkManager exits and restarts, the agent will re-register itself
automatically.
- public SecretAgentCapabilities capabilities { get; set construct; }
A bitfield of nmsecretagentcapabilities
.
- public DBusConnection dbus_connection { get; construct; }
- public string identifier { owned get; construct; }
Identifies this agent; only one agent in each user session may use the
same identifier.
- public bool registered { get; }
true if the agent is registered with
NetworkManager, false if not.
Creation methods:
Methods:
- public virtual void cancel_get_secrets (string connection_path, string setting_name)
- public virtual void delete_secrets (Connection connection, string connection_path, SecretAgentOldDeleteSecretsFunc callback)
Asynchronously asks the agent to delete all saved secrets belonging to
connection.
- public void destroy ()
Since 1.24, the instance will already register a D-Bus object on the
D-Bus connection during initialization.
- public void enable (bool enable)
This has the same effect as setting
nm_secret_agent_old_auto_register property.
- public unowned Object get_context_busy_watcher ()
- public unowned DBusConnection get_dbus_connection ()
- public unowned string get_dbus_name_owner ()
- public unowned MainContext get_main_context ()
- public bool get_registered ()
Note that the secret agent transparently registers and re-registers as
the D-Bus name owner appears.
- public virtual void get_secrets (Connection connection, string connection_path, string setting_name, string[] hints, SecretAgentGetSecretsFlags flags, SecretAgentOldGetSecretsFunc callback)
Asynchronously retrieves secrets belonging to connection
for the setting setting_name.
- public bool register (Cancellable? cancellable = null) throws Error
Registers the SecretAgentOld with
the NetworkManager secret manager, indicating to NetworkManager that the agent is able to provide and save secrets for connections on
behalf of its user.
- public async bool register_async (Cancellable? cancellable) throws Error
Asynchronously registers the
SecretAgentOld with the NetworkManager secret manager, indicating to NetworkManager that the agent is able to provide and
save secrets for connections on behalf of its user.
- public virtual void save_secrets (Connection connection, string connection_path, SecretAgentOldSaveSecretsFunc callback)
Asynchronously ensures that all secrets inside connection
are stored to disk.
- public bool unregister (Cancellable? cancellable = null) throws Error
Unregisters the SecretAgentOld
with the NetworkManager secret manager, indicating to NetworkManager that the agent will no longer provide or store secrets on behalf
of this user.
- public async bool unregister_async (Cancellable? cancellable) throws Error
Asynchronously unregisters the
SecretAgentOld with the NetworkManager secret manager, indicating to NetworkManager that the agent will no longer provide or
store secrets on behalf of this user.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.Initable