IamUtil.pairPasswordInviteCallback()

DESCRIPTION

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

In the Password invite pairing mode a user is required in the system to be able to pair: An existing user (or the system autonomously) creates a username and password that is somehow passed to the new user (an invitation).

Error information is sent to the callback.

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

DECLARATION

    public abstract void pairPasswordInviteCallback(Connection connection, String username, String password, IamCallback cb)

PARAMETERS

connection:
An established connection to the device this client should be paired with
username:
Username for the invited user
password:
Password for the invited user
callback:
The callback that will be run once the function has completed successfully or erroneously.