2019-10-23 22:20:16 +02:00
|
|
|
Agent Manager hierarchy
|
|
|
|
=======================
|
|
|
|
|
|
|
|
Service net.connman.iwd
|
|
|
|
Interface net.connman.iwd.AgentManager
|
2019-10-28 17:30:44 +01:00
|
|
|
Object path /net/connman/iwd
|
2019-10-23 22:20:16 +02:00
|
|
|
|
|
|
|
Methods void RegisterAgent(object path)
|
|
|
|
|
2021-10-21 10:50:38 +02:00
|
|
|
Register new agent for handling user secrets requests.
|
|
|
|
The agent object's methods on the net.connman.iwd.Agent
|
|
|
|
interface will be called when IWD needs to request
|
|
|
|
credentials for a connection to a network in station
|
|
|
|
mode.
|
2019-10-23 22:20:16 +02:00
|
|
|
|
2021-10-21 10:50:38 +02:00
|
|
|
Possible Errors: [service].InvalidArguments
|
|
|
|
[service].Failed
|
|
|
|
[service].AlreadyExists
|
2019-10-23 22:20:16 +02:00
|
|
|
|
|
|
|
void UnregisterAgent(object path)
|
|
|
|
|
|
|
|
Unregister an existing agent.
|
|
|
|
|
2021-10-21 10:50:38 +02:00
|
|
|
Possible Errors: [service].InvalidArguments
|
|
|
|
[service].Failed
|
|
|
|
[service].NotFound
|
2019-10-23 22:20:16 +02:00
|
|
|
|
|
|
|
|
2015-02-27 15:01:05 +01:00
|
|
|
Agent hierarchy
|
|
|
|
===============
|
|
|
|
|
|
|
|
Service unique name
|
|
|
|
Interface net.connman.iwd.Agent
|
|
|
|
Object path freely definable
|
|
|
|
|
2021-06-09 17:35:35 +02:00
|
|
|
Methods void Release() [noreply]
|
2015-02-27 15:01:05 +01:00
|
|
|
|
|
|
|
This method gets called when the service daemon
|
|
|
|
unregisters the agent. An agent can use it to do
|
|
|
|
cleanup tasks. There is no need to unregister the
|
|
|
|
agent, because when this method gets called it has
|
|
|
|
already been unregistered.
|
|
|
|
|
|
|
|
string RequestPassphrase(object network)
|
|
|
|
|
|
|
|
This method gets called when trying to connect to
|
|
|
|
a network and passphrase is required.
|
|
|
|
|
|
|
|
Possible Errors: net.connman.iwd.Agent.Error.Canceled
|
|
|
|
|
2018-04-18 07:03:33 +02:00
|
|
|
string RequestPrivateKeyPassphrase(object network)
|
|
|
|
|
|
|
|
This method gets called when connecting to
|
|
|
|
a network that requires authentication using a
|
|
|
|
locally-stored encrypted private key file, to
|
|
|
|
obtain that private key's encryption passphrase.
|
|
|
|
|
|
|
|
Possible Errors: net.connman.iwd.Agent.Error.Canceled
|
|
|
|
|
|
|
|
(string, string) RequestUserNameAndPassword(object network)
|
|
|
|
|
|
|
|
This method gets called when connecting to
|
|
|
|
a network that requires authentication using a
|
|
|
|
user name and password.
|
|
|
|
|
|
|
|
Possible Errors: net.connman.iwd.Agent.Error.Canceled
|
|
|
|
|
|
|
|
string RequestUserPassword(object network, string user)
|
|
|
|
|
|
|
|
This method gets called when connecting to
|
|
|
|
a network that requires authentication with a
|
|
|
|
user password. The user name is optionally passed
|
|
|
|
in the parameter.
|
|
|
|
|
|
|
|
Possible Errors: net.connman.iwd.Agent.Error.Canceled
|
|
|
|
|
2021-06-09 17:35:35 +02:00
|
|
|
void Cancel(string reason) [noreply]
|
2015-02-27 15:01:05 +01:00
|
|
|
|
|
|
|
This method gets called to indicate that the agent
|
2016-06-09 19:54:43 +02:00
|
|
|
request failed before a reply was returned. The
|
|
|
|
argument will indicate why the request is being
|
|
|
|
cancelled and may be "out-of-range", "user-canceled",
|
|
|
|
"timed-out" or "shutdown".
|
2015-02-27 15:01:05 +01:00
|
|
|
|
|
|
|
Examples Requesting a passphrase for WPA2 network
|
|
|
|
|
2021-10-21 10:50:38 +02:00
|
|
|
RequestPassphrase("/net/connman/iwd/0/3/54657374_psk")
|
2015-02-27 15:01:05 +01:00
|
|
|
==> "secret123"
|