IamUtil.pairPasswordOpenCallback()

DESCRIPTION

Perform Password Open pairing, requesting the specified username and authenticating using the specified password. Runs asynchronously with a callback.

In this mode a device has set a password which can be used in the pairing process to grant a client access to the device. The client can pair remotely to the device if necessary; it is not necessary to be on the same LAN.

Error information is sent to the callback.

Read more here: https://docs.nabto.com/developer/guides/iam/pairing.html#open-password

DECLARATION

    public abstract void pairPasswordOpenCallback(Connection connection, String desiredUsername, String password, IamCallback cb)

PARAMETERS

connection:
An established connection to the device this client should be paired with
desiredUsername:
Assign this username on the device if available (pairing fails with .USERNAME_EXISTS if not)
password:
the common (not user-specific) password to allow pairing using Password Open pairing
callback:
The callback that will be run once the function has completed successfully or erroneously.