IamUtil.pairPasswordInvite()
DESCRIPTION
Perform Password Invite pairing, authenticating with the specified username and password.
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).
This function blocks until it has succeeded.
Read more here: https://docs.nabto.com/developer/guides/iam/pairing.html#invite
DECLARATION
public abstract void pairPasswordInvite(Connection connection, String username, String password)
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
THROWS EXCEPTIONS
- IamException:
- with IamError AUTHENTICATION_ERRORif authentication failed using the specified username/password combination for the device
- IamException:
- with IamError BLOCKED_BY_DEVICE_CONFIGURATIONif the device configuration does not support local open pairing (theIAM:PairingPasswordInviteaction is not set for the Unpaired role or the device does not support the pairing mode at all)
- IamException:
- with IamError PAIRING_MODE_DISABLEDif the pairing mode is configured on the device but is disabled at runtime
- IamException:
- with IamError IAM_NOT_SUPPORTEDif Nabto Edge IAM is not supported by the device