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 UNAUTHORIZED if the username or password is invalid
NabtoRuntimeException:
with error code NOT_FOUND if the password authentication feature is not available on the device
NabtoRuntimeException:
with error code NOT_CONNECTED if the connection is not open
NabtoRuntimeException:
with error code OPERATION_IN_PROGRESS if a password authentication request is already in progress on the connection
NabtoRuntimeException:
with error code TOO_MANY_REQUESTS if too many password attempts has been made
NabtoRuntimeException:
with error code STOPPED if the client is stopped