Class 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 Elasticsearch uses to map roles, etc.
    • Method Detail

      • getUser

        public User getUser()
        Returns:
        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()
        Returns:
        whether the user is enabled or not
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object