IamUtil.updateUserPassword()
DESCRIPTION
Update an IAM user’s password on device.
This function blocks until it has succeeded.
DECLARATION
public abstract void updateUserPassword(Connection connection, String username, String password)
PARAMETERS
connection:- An established connection to the device
username:- Username for the user that should have password updated
password:- New password for the user
THROWS EXCEPTIONS
IamException:- with IamError
BLOCKED_BY_DEVICE_CONFIGURATIONif the device configuration does not allow the current user to update the specified user's password (theIAM:SetUserPasswordaction is not allowed for the requesting role for theIAM:Usernameuser) IamException:- with IamError
IAM_NOT_SUPPORTEDif Nabto Edge IAM is not supported by the device