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
Changes the passwords of users in the native realm and built-in users.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChangePasswordRequest.BuilderBuilder forChangePasswordRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ChangePasswordRequest>_DESERIALIZERJson deserializer forChangePasswordRequeststatic Endpoint<ChangePasswordRequest,ChangePasswordResponse,ErrorResponse>_ENDPOINTEndpoint "security.change_password". -
Method Summary
Modifier and Type Method Description static ChangePasswordRequestof(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn)java.lang.Stringpassword()The new password value.java.lang.StringpasswordHash()A hash of the new password value.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 voidsetupChangePasswordRequestDeserializer(ObjectDeserializer<ChangePasswordRequest.Builder> op)java.lang.Stringusername()The user whose password you want to change.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forChangePasswordRequest -
_ENDPOINT
public static final Endpoint<ChangePasswordRequest,ChangePasswordResponse,ErrorResponse> _ENDPOINTEndpoint "security.change_password".
-
-
Method Details
-
of
public static ChangePasswordRequest of(java.util.function.Function<ChangePasswordRequest.Builder,ObjectBuilder<ChangePasswordRequest>> fn) -
password
@Nullable public final java.lang.String password()The new password value. Passwords must be at least 6 characters long.API name:
password -
passwordHash
@Nullable public final java.lang.String passwordHash()A 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 -
refresh
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.API name:
refresh -
username
@Nullable public final java.lang.String username()The 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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupChangePasswordRequestDeserializer
protected static void setupChangePasswordRequestDeserializer(ObjectDeserializer<ChangePasswordRequest.Builder> op)
-