Class ChangePasswordRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.ChangePasswordRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class ChangePasswordRequest
extends RequestBase
implements JsonpSerializable
Change passwords.
 
Change the passwords of users in the native realm and built-in users.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ChangePasswordRequest>Json deserializer forChangePasswordRequeststatic final Endpoint<ChangePasswordRequest,ChangePasswordResponse, ErrorResponse> Endpoint "security.change_password".
- 
Method SummaryModifier and TypeMethodDescriptionstatic ChangePasswordRequestfinal Stringpassword()The new password value.final StringA hash of the new password value.final Refreshrefresh()Iftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringusername()The user whose password you want to change.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forChangePasswordRequest
- 
_ENDPOINTEndpoint "security.change_password".
 
- 
- 
Method Details- 
ofpublic static ChangePasswordRequest of(Function<ChangePasswordRequest.Builder, ObjectBuilder<ChangePasswordRequest>> fn) 
- 
passwordThe new password value. Passwords must be at least 6 characters long.API name: password
- 
passwordHashA hash of the new password value. This must be produced using the same hashing algorithm as has been configured for password storage. For more details, see the explanation of thexpack.security.authc.password_hashing.algorithmsetting.API name: password_hash
- 
refreshIftrue(the default) then refresh the affected shards to make this operation visible to search, ifwait_forthen wait for a refresh to make this operation visible to search, iffalsethen do nothing with refreshes.API name: refresh
- 
usernameThe user whose password you want to change. If you do not specify this parameter, the password is changed for the current user.API name: username
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupChangePasswordRequestDeserializerprotected static void setupChangePasswordRequestDeserializer(ObjectDeserializer<ChangePasswordRequest.Builder> op) 
 
-