IamUtil.createUserCallback()

DESCRIPTION

Create an IAM user on device. Runs asynchronously with a callback.

Result and error information is sent to the callback.

See https://docs.nabto.com/developer/guides/iam/intro.html for an intro to the concept of users and roles.

DECLARATION

    public abstract void createUserCallback(Connection connection, String username, String password, String role, IamCallback callback)

PARAMETERS

connection:
An established connection to the device
username:
Username for the new user
password:
Password for the new user
role:
IAM role for the new user
callback:
The callback that will be run once the function has completed successfully or erroneously.