Module org.elasticsearch.xcore
Class PutUserRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutUserRequest,PutUserResponse>
org.elasticsearch.xpack.core.security.action.user.PutUserRequestBuilder
- All Implemented Interfaces:
RequestBuilder<PutUserRequest,,PutUserResponse> WriteRequestBuilder<PutUserRequestBuilder>
public class PutUserRequestBuilder
extends ActionRequestBuilder<PutUserRequest,PutUserResponse>
implements WriteRequestBuilder<PutUserRequestBuilder>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled(boolean enabled) Deprecated.password(SecureString password, Hasher hasher) passwordHash(char[] passwordHash, Hasher configuredHasher) source(String username, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType, Hasher hasher) Populate the put user request using the given source and usernameMethods 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
-
PutUserRequestBuilder
-
-
Method Details
-
username
-
roles
-
password
Deprecated.Usepassword(SecureString, Hasher)instead. -
password
-
metadata
-
fullName
-
email
-
passwordHash
-
enabled
-
source
public PutUserRequestBuilder source(String username, BytesReference source, org.elasticsearch.xcontent.XContentType xContentType, Hasher hasher) throws IOException Populate the put user request using the given source and username- Throws:
IOException
-
password(SecureString, Hasher)instead.