diff options
| author | Michael Biebl <biebl@debian.org> | 2014-07-06 02:16:10 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2014-07-06 02:16:10 +0200 |
| commit | 33491bc4279481db8ae47213e34a6d695a0e8830 (patch) | |
| tree | 097d2b0fdff3fae6885381ae5e57a182cd8cbbba /introspection/nm-secret-agent.xml | |
| parent | 59c3714a494c3b3765657c0551ad82842d98a7d2 (diff) | |
Imported Upstream version 0.9.10.0 upstream/0.9.10.0
Diffstat (limited to 'introspection/nm-secret-agent.xml')
| -rw-r--r-- | introspection/nm-secret-agent.xml | 63 |
1 files changed, 60 insertions, 3 deletions
diff --git a/introspection/nm-secret-agent.xml b/introspection/nm-secret-agent.xml index 48dde703..337d0a7f 100644 --- a/introspection/nm-secret-agent.xml +++ b/introspection/nm-secret-agent.xml @@ -11,7 +11,8 @@ itself and should not expect its SaveSecrets() method to be called. SaveSecrets() will be called eg if some program other than the agent itself (like a connection editor) changes the secrets out of - band. + band. The agent should implement this D-Bus interface on an object + with the path /org/freedesktop/NetworkManager/SecretAgent. </tp:docstring> <method name="GetSecrets"> @@ -21,7 +22,9 @@ and the user enters new secrets, the agent is expected to save the new secrets to persistent storage (if the secret's flags include AGENT_OWNED) as NetworkManager will not send these - secrets back to the same agent via a SaveSecrets() call. + secrets back to the same agent via a SaveSecrets() call. If + the user canceled any interaction, the agent should return the + UserCanceled error (see below). </tp:docstring> <annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_secret_agent_get_secrets"/> <annotation name="org.freedesktop.DBus.GLib.Async" value=""/> @@ -55,7 +58,10 @@ required, so in some cases no hints may be given. The Agent should return any secrets it has, or that it thinks are required, regardless of what hints NetworkManager sends - in this request. + in this request. Some hints have special prefixes that + provide information to the agent; for example, VPN requests + may send server-specific messages prefixed with + "x-vpn-message:". </tp:docstring> </arg> <arg name="flags" type="u" direction="in" tp:type="NM_SECRET_AGENT_GET_SECRETS_FLAGS"> @@ -75,6 +81,45 @@ the setting, and one or more secrets. </tp:docstring> </arg> + + <tp:possible-errors> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.NotAuthorized"> + <tp:docstring> + Should be returned when the process requesting secrets is + not authorized to do so (like if the caller is not root + or not NetworkManager). + </tp:docstring> + </tp:error> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.InvalidConnection"> + <tp:docstring> + Should be returned if the 'connection' argument is invalid. + </tp:docstring> + </tp:error> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.UserCanceled"> + <tp:docstring> + Should be returned when the user has canceled the request. + </tp:docstring> + </tp:error> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.AgentCanceled"> + <tp:docstring> + Should be returned when NetworkManager has requested that + the agent cancel the request. + </tp:docstring> + </tp:error> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.InternalError"> + <tp:docstring> + Should be returned if the agent has encountered some internal + error processing the request. + </tp:docstring> + </tp:error> + <tp:error name="org.freedesktop.NetworkManager.SecretAgent.NoSecrets"> + <tp:docstring> + Should be returned if there are no available secrets, for + example if user interaction is not allowed and there are + no secrets stored by the agent for this connection. + </tp:docstring> + </tp:error> + </tp:possible-errors> </method> <tp:flags name="NM_SECRET_AGENT_GET_SECRETS_FLAGS" value-prefix="NM_SECRET_AGENT_GET_SECRETS_FLAG" type="u"> @@ -181,6 +226,18 @@ </arg> </method> + <tp:flags name="NM_SECRET_AGENT_CAPABILITIES" value-prefix="NM_SECRET_AGENT_CAPABILITY" type="u"> + <tp:flag suffix="NONE" value="0x0"> + <tp:docstring>No special capabilities.</tp:docstring> + </tp:flag> + <tp:flag suffix="VPN_HINTS" value="0x1"> + <tp:docstring> + The agent supports passing hints to VPN plugin authentication + dialogs. + </tp:docstring> + </tp:flag> + </tp:flags> + </interface> </node> |