Module org.elasticsearch.security
Class ChangePasswordRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<ChangePasswordRequest,ActionResponse.Empty>
org.elasticsearch.xpack.security.action.user.ChangePasswordRequestBuilder
- All Implemented Interfaces:
RequestBuilder<ChangePasswordRequest,,ActionResponse.Empty> WriteRequestBuilder<ChangePasswordRequestBuilder>
public class ChangePasswordRequestBuilder
extends ActionRequestBuilder<ChangePasswordRequest,ActionResponse.Empty>
implements WriteRequestBuilder<ChangePasswordRequestBuilder>
Request to change a user's password.
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the password.passwordHash(char[] passwordHashChars, Hasher configuredHasher) Sets the password hash.source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType, Hasher hasher) Populate the change password request from the source in the provided content typestatic char[]validateAndHashPassword(SecureString password, Hasher hasher) Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.support.WriteRequestBuilder
request, setRefreshPolicy, setRefreshPolicy
-
Constructor Details
-
ChangePasswordRequestBuilder
-
-
Method Details
-
username
-
validateAndHashPassword
-
password
Sets the password. Note: the char[] passed to this method will be cleared. -
passwordHash
Sets the password hash. -
source
public ChangePasswordRequestBuilder source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType, Hasher hasher) throws IOException Populate the change password request from the source in the provided content type- Throws:
IOException
-