NM.VpnPluginOld¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|
||
r/w |
|
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class NM.VpnPluginOld(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod get_secret_flags(data, secret_name)¶
- Parameters:
- Returns:
True
if the flag data item was found and successfully converted to flags,False
if 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.SettingSecretFlags
and returns it.Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- 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.
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- disconnect()¶
- Raises:
- Return type:
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- failure(reason)¶
- Parameters:
reason (
NM.VpnPluginFailure
) –
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- get_connection()¶
- Return type:
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- get_state()¶
- Return type:
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- 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.
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- set_ip4_config(ip4_config)¶
- Parameters:
ip4_config (
GLib.Variant
) –
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- set_login_banner(banner)¶
- Parameters:
banner (
str
) –
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- set_state(state)¶
- Parameters:
state (
NM.VpnServiceState
) –
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- 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_disconnect() virtual¶
- Return type:
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- do_failure(reason) virtual¶
- Parameters:
reason (
NM.VpnPluginFailure
) –
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- 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.VpnPluginOld.signals.config(vpn_plugin_old, object)¶
- Signal Name:
config
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
GLib.Variant
) –
- NM.VpnPluginOld.signals.failure(vpn_plugin_old, object)¶
- Signal Name:
failure
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
int
) –
- NM.VpnPluginOld.signals.ip4_config(vpn_plugin_old, object)¶
- Signal Name:
ip4-config
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
GLib.Variant
) –
- NM.VpnPluginOld.signals.ip6_config(vpn_plugin_old, object)¶
- Signal Name:
ip6-config
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
GLib.Variant
) –
- NM.VpnPluginOld.signals.login_banner(vpn_plugin_old, object)¶
- Signal Name:
login-banner
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
str
) –
- NM.VpnPluginOld.signals.quit(vpn_plugin_old)¶
- Signal Name:
quit
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signal
- NM.VpnPluginOld.signals.secrets_required(vpn_plugin_old, object, p0)¶
- Signal Name:
secrets-required
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
str
) –p0 ([
str
]) –
- NM.VpnPluginOld.signals.state_changed(vpn_plugin_old, object)¶
- Signal Name:
state-changed
- Flags:
- Parameters:
vpn_plugin_old (
NM.VpnPluginOld
) – The object which received the signalobject (
int
) –
Property Details¶
- NM.VpnPluginOld.props.service_name¶
- Name:
service-name
- Type:
- Default Value:
- Flags:
The D-Bus service name of this plugin.
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.
- NM.VpnPluginOld.props.state¶
- Name:
state
- Type:
- Default Value:
- Flags:
The state of the plugin.
Deprecated since version 1.2: Replaced by
NM.VpnServicePlugin
.