Class AuthenticateRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.AuthenticateRequest
Authenticate a user.
Authenticates a user and returns information about the authenticated user. Include the user information in a basic auth header. A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. If the user cannot be authenticated, this API returns a 401 status code.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<AuthenticateRequest,
AuthenticateResponse, ErrorResponse> Endpoint "security.authenticate
".static final AuthenticateRequest
Singleton instance forAuthenticateRequest
. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_INSTANCE
Singleton instance forAuthenticateRequest
. -
_ENDPOINT
Endpoint "security.authenticate
".
-
-
Constructor Details
-
AuthenticateRequest
public AuthenticateRequest()
-