类 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.
  • 构造器详细资料

  • 方法详细资料

    • getUser

      public User 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

      public AuthenticateResponse.RealmInfo getAuthenticationRealm()
      返回:
      the realm that authenticated the user
    • getLookupRealm

      public AuthenticateResponse.RealmInfo 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