类 AuthenticateResponse
java.lang.Object
org.easysearch.client.security.AuthenticateResponse
public final class AuthenticateResponse
extends java.lang.Object
The response for the authenticate call. The response contains two fields: a
user field and a boolean flag signaling if the user is enabled or not. The
user object contains all user metadata which Easysearch uses to map roles,
etc.
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAuthenticateResponse.RealmInfo -
构造器概要
构造器 构造器 说明 AuthenticateResponse(User user, boolean enabled, AuthenticateResponse.RealmInfo authenticationRealm, AuthenticateResponse.RealmInfo lookupRealm, java.lang.String authenticationType) -
方法概要
修饰符和类型 方法 说明 booleanenabled()booleanequals(java.lang.Object o)static AuthenticateResponsefromXContent(org.easysearch.common.xcontent.XContentParser parser)AuthenticateResponse.RealmInfogetAuthenticationRealm()java.lang.StringgetAuthenticationType()AuthenticateResponse.RealmInfogetLookupRealm()UsergetUser()inthashCode()从类继承的方法 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
AuthenticateResponse
public AuthenticateResponse(User user, boolean enabled, AuthenticateResponse.RealmInfo authenticationRealm, AuthenticateResponse.RealmInfo lookupRealm, java.lang.String authenticationType)
-
-
方法详细资料
-
getUser
- 返回:
- The effective user. This is the authenticated user, or, when submitting requests on behalf of other users, it is the impersonated user.
-
enabled
public boolean enabled()- 返回:
- whether the user is enabled or not
-
getAuthenticationRealm
- 返回:
- the realm that authenticated the user
-
getLookupRealm
- 返回:
- the realm where the user information was looked up
-
getAuthenticationType
public java.lang.String getAuthenticationType() -
equals
public boolean equals(java.lang.Object o)- 覆盖:
equals在类中java.lang.Object
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中java.lang.Object
-
fromXContent
public static AuthenticateResponse fromXContent(org.easysearch.common.xcontent.XContentParser parser) throws java.io.IOException- 抛出:
java.io.IOException
-