Connection.passwordAuthenticate()
DESCRIPTION
Password authenticate a connection.
This function blocks until the exchange is done or an exception is thrown.
DECLARATION
void passwordAuthenticate(String username, String password)
PARAMETERS
username:- the username.
password:- the password
THROWS EXCEPTIONS
NabtoRuntimeException:- with error code
UNAUTHORIZEDif the username or password is invalid NabtoRuntimeException:- with error code
NOT_FOUNDif the password authentication feature is not available on the device NabtoRuntimeException:- with error code
NOT_CONNECTEDif the connection is not open NabtoRuntimeException:- with error code
OPERATION_IN_PROGRESSif a password authentication request is already in progress on the connection NabtoRuntimeException:- with error code
TOO_MANY_REQUESTSif too many password attempts has been made NabtoRuntimeException:- with error code
STOPPEDif the client is stopped