SecretAgent
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-glib
Content:
Constants:
- public const string AUTO_REGISTER
- public const string CAPABILITIES
- public const string IDENTIFIER
- public const string REGISTERED
- public const string REGISTRATION_RESULT
Properties:
- public bool auto_register { get; set construct; }
If TRUE, the agent will attempt to automatically register itself after it is created (via an idle handler) and to re-register itself if NetworkManager restarts.
- public SecretAgentCapabilities capabilities { get; set construct; }
A bitfield of SecretAgentCapabilities.
- 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:
- protected SecretAgent ()
Methods:
- public virtual void cancel_get_secrets (string connection_path, string setting_name)
- public virtual void delete_secrets (Connection connection, string connection_path, SecretAgentDeleteSecretsFunc callback)
Asynchronously ask the agent to delete all saved secrets belonging to
connection
. - public bool get_registered ()
- public virtual void get_secrets (Connection connection, string connection_path, string setting_name, string[] hints, SecretAgentGetSecretsFlags flags, SecretAgentGetSecretsFunc callback)
Asynchronously retrieve secrets belonging to
connection
for the settingsetting_name
. - public bool register ()
Registers the SecretAgent 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, SecretAgentSaveSecretsFunc callback)
Asynchronously ensure that all secrets inside
connection
are stored to disk. - public bool unregister ()
Unregisters the SecretAgent with the NetworkManager secret manager, indicating to NetworkManager that the agent is will no longer provide or store secrets on behalf of this user.
Signals:
- public virtual signal void registration_result (void* error)
Indicates the result of a registration request; if
error
is NULL the request was successful.
Inherited Members:
All known members inherited from class GLib.Object