Top |
Connect (IN a{sa{sv}} connection); ConnectInteractive (IN a{sa{sv}} connection, IN a{sv} details); NeedSecrets (IN a{sa{sv}} settings, OUT s setting_name); Disconnect (); SetConfig (IN a{sv} config); SetIp4Config (IN a{sv} config); SetIp6Config (IN a{sv} config); SetFailure (IN s reason); NewSecrets (IN a{sa{sv}} connection);
StateChanged (u state); SecretsRequired (s message, as secrets); Config (a{sv} config); Ip4Config (a{sv} ip4config); Ip6Config (a{sv} ip6config); LoginBanner (s banner); Failure (u reason);
This interface is provided by plugins providing VPN services to the NetworkManager daemon.
Connect (IN a{sa{sv}} connection);
Tells the plugin to connect. Interactive secrets requests (eg, emitting the SecretsRequired signal) are not allowed.
|
Describes the connection to be established. |
ConnectInteractive (IN a{sa{sv}} connection, IN a{sv} details);
Tells the plugin to connect, allowing interactive secrets requests (eg the plugin is allowed to emit the SecretsRequired signal if the VPN service indicates that it needs additional secrets during the connect process).
|
Describes the connection to be established. |
|
Additional details about the Connect process. |
NeedSecrets (IN a{sa{sv}} settings, OUT s setting_name);
Asks the plugin whether the provided connection will require secrets to connect successfully.
|
Describes the connection that may need secrets. |
|
The setting name within the provided connection that requires secrets, if any. |
SetConfig (IN a{sv} config);
Set generic connection details on the connection.
|
Generic configuration details for the connection. |
SetIp4Config (IN a{sv} config);
Set IPv4 details on the connection.
|
Ip4Config details for the connection. You must call SetConfig() before calling this. |
SetIp6Config (IN a{sv} config);
Set IPv6 details on the connection.
|
Ip6Config details for the connection. You must call SetConfig() before calling this. |
SetFailure (IN s reason);
Indicate a failure to the plugin.
|
The reason for the failure. |
StateChanged (u state);
Emitted when the plugin state changes.
|
(NMVpnServiceState) The new state of the plugin. |
SecretsRequired (s message, as secrets);
Emitted during an ongoing ConnectInteractive() request when the plugin has determined that new secrets are required. NetworkManager will then call the NewSecrets() method with a connection hash including the new secrets.
|
Informational message, if any, about the request. For example, if a second PIN is required, could indicate to the user to wait for the token code to change until entering the next PIN. |
|
Array of strings of VPN secret names which the plugin thinks secrets may be required for, or other VPN-specific data to be processed by the VPN's front-end. |
Config (a{sv} config);
The plugin obtained generic configuration information.
|
The configuration information. |
Ip4Config (a{sv} ip4config);
The plugin obtained an IPv4 configuration.
|
The IPv4 configuration. |
Ip6Config (a{sv} ip6config);
The plugin obtained an IPv6 configuration.
|
The IPv6 configuration. |
LoginBanner (s banner);
Emitted when the plugin receives a login banner from the VPN service.
|
The login banner string. |
Failure (u reason);
Emitted when a failure in the VPN plugin occurs.
|
(NMVpnPluginFailure) Reason code for the failure. |