类 PutUserRequest
java.lang.Object
org.easysearch.client.security.PutUserRequest
- 所有已实现的接口:
Validatable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public final class PutUserRequest extends java.lang.Object implements Validatable, org.easysearch.common.xcontent.ToXContentObject
Request object to create or update a user in the native realm.
-
嵌套类概要
从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
方法概要
修饰符和类型 方法 说明 booleanequals(java.lang.Object o)char[]getPassword()UsergetUser()inthashCode()org.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)static PutUserRequestupdateUser(User user)Update an existing user in the native realm without modifying their password.java.util.Optional<ValidationException>validate()Perform validation.static PutUserRequestwithPassword(User user, char[] password)Create or update a user in the native realm, with the user's new or updated password specified in plaintext.从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment
-
方法详细资料
-
withPassword
Create or update a user in the native realm, with the user's new or updated password specified in plaintext.- 参数:
user- the user to be created or updatedpassword- the password of the user. The password array is not modified by this class. It is the responsibility of the caller to clear the password after receiving a response.
-
updateUser
Update an existing user in the native realm without modifying their password.- 参数:
user- the user to be created or updated
-
getUser
-
getPassword
@Nullable public char[] getPassword() -
equals
public boolean equals(java.lang.Object o)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-
validate
从接口复制的说明:ValidatablePerform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. AValidationExceptionthat is not null is assumed to contain validation errors and will be thrown.- 指定者:
validate在接口中Validatable- 返回:
- An
OptionalValidationExceptionthat contains a list of validation errors.
-
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-