NM.VpnServicePlugin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w |
|||
r/w/co |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class NM.VpnServicePlugin(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Added in version 1.2.
- classmethod get_secret_flags(data, secret_name)¶
- Parameters:
- Returns:
Trueif the flag data item was found and successfully converted to flags,Falseif not- out_flags:
on success, the flags associated with secret_name
- Return type:
(
bool, out_flags:NM.SettingSecretFlags)
Given a VPN secret key name, attempts to find the corresponding flags data item in data. If found, converts the flags data item to
NM.SettingSecretFlagsand returns it.Added in version 1.2.
- classmethod read_vpn_details(fd)¶
- Parameters:
fd (
int) – file descriptor to read from, usually stdin (0)- Returns:
- Return type:
(
bool, out_data: {object:object}, out_secrets: {object:object})
Parses key/value pairs from a file descriptor (normally stdin) passed by an applet when the applet calls the authentication dialog of the VPN plugin.
Added in version 1.2.
- disconnect()¶
- Raises:
- Return type:
Added in version 1.2.
- failure(reason)¶
- Parameters:
reason (
NM.VpnPluginFailure)
Added in version 1.2.
- get_connection()¶
- Return type:
Added in version 1.2.
- secrets_required(message, hints)¶
- Parameters:
Called by VPN plugin implementations to signal to NetworkManager that secrets are required during the connection process. This signal may be used to request new secrets when the secrets originally provided by NetworkManager are insufficient, or the VPN process indicates that it needs additional information to complete the request.
Added in version 1.2.
- set_config(config)¶
- Parameters:
config (
GLib.Variant)
Added in version 1.2.
- set_ip4_config(ip4_config)¶
- Parameters:
ip4_config (
GLib.Variant)
Added in version 1.2.
- set_ip6_config(ip6_config)¶
- Parameters:
ip6_config (
GLib.Variant)
Added in version 1.2.
- shutdown()¶
Shutdown the self and disconnect from D-Bus. After this, the plugin instance is dead and should no longer be used. It ensures to get no more requests from D-Bus. In principle, you don’t need to shutdown the plugin, disposing the instance has the same effect. However, this gives a way to deactivate the plugin before giving up the last reference.
Added in version 1.12.
- do_config(config) virtual¶
- Parameters:
config (
GLib.Variant)
- do_connect(connection) virtual¶
- Parameters:
connection (
NM.Connection)- Return type:
- do_connect_interactive(connection, details) virtual¶
- Parameters:
connection (
NM.Connection)details (
GLib.Variant)
- Return type:
- do_failure(reason) virtual¶
- Parameters:
reason (
NM.VpnPluginFailure)
Added in version 1.2.
- do_ip4_config(ip4_config) virtual¶
- Parameters:
ip4_config (
GLib.Variant)
- do_ip6_config(config) virtual¶
- Parameters:
config (
GLib.Variant)
- do_need_secrets(connection, setting_name) virtual¶
- Parameters:
connection (
NM.Connection)setting_name (
str)
- Return type:
- do_new_secrets(connection) virtual¶
- Parameters:
connection (
NM.Connection)- Return type:
- do_quit() virtual¶
- do_state_changed(state) virtual¶
- Parameters:
state (
NM.VpnServiceState)
Signal Details¶
- NM.VpnServicePlugin.signals.config(vpn_service_plugin, object)¶
- Signal Name:
config- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
GLib.Variant)
- NM.VpnServicePlugin.signals.failure(vpn_service_plugin, object)¶
- Signal Name:
failure- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
int)
- NM.VpnServicePlugin.signals.ip4_config(vpn_service_plugin, object)¶
- Signal Name:
ip4-config- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
GLib.Variant)
- NM.VpnServicePlugin.signals.ip6_config(vpn_service_plugin, object)¶
- Signal Name:
ip6-config- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
GLib.Variant)
- NM.VpnServicePlugin.signals.login_banner(vpn_service_plugin, object)¶
- Signal Name:
login-banner- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
str)
- NM.VpnServicePlugin.signals.quit(vpn_service_plugin)¶
- Signal Name:
quit- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signal
- NM.VpnServicePlugin.signals.secrets_required(vpn_service_plugin, object, p0)¶
- Signal Name:
secrets-required- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
str)p0 ([
str])
- NM.VpnServicePlugin.signals.state_changed(vpn_service_plugin, object)¶
- Signal Name:
state-changed- Flags:
- Parameters:
vpn_service_plugin (
NM.VpnServicePlugin) – The object which received the signalobject (
int)
Property Details¶
- NM.VpnServicePlugin.props.service_name¶
- Name:
service-name- Type:
- Default Value:
- Flags:
The D-Bus service name of this plugin.
Added in version 1.2.
- NM.VpnServicePlugin.props.state¶
- Name:
state- Type:
- Default Value:
- Flags:
The state of the plugin.
Added in version 1.2.