IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Change Password APIedit
Executionedit
A user’s password can be changed using the security().changePassword()
method:
ChangePasswordRequest request = new ChangePasswordRequest("change_password_user", newPassword, RefreshPolicy.NONE); boolean response = client.security().changePassword(request, RequestOptions.DEFAULT);
Responseedit
The returned Boolean
indicates the request status.
Asynchronous Executionedit
This request can be executed asynchronously:
The asynchronous method does not block and returns immediately. Once the request
has completed the ActionListener
is called back using the onResponse
method
if the execution successfully completed or using the onFailure
method if
it failed.
A typical listener for a Boolean
looks like: