Module org.elasticsearch.security
Class TransportCreateTokenAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<CreateTokenRequest,CreateTokenResponse>
org.elasticsearch.action.support.HandledTransportAction<CreateTokenRequest,CreateTokenResponse>
org.elasticsearch.xpack.security.action.token.TransportCreateTokenAction
public final class TransportCreateTokenAction
extends HandledTransportAction<CreateTokenRequest,CreateTokenResponse>
Transport action responsible for creating a token based on a request. Requests provide user
credentials that can be different than those of the user that is currently authenticated so we
always re-authenticate within this action. This authenticated user will be the user that the
token represents
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportCreateTokenAction(ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, TokenService tokenService, AuthenticationService authenticationService, SecurityContext securityContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(Task task, CreateTokenRequest request, ActionListener<CreateTokenResponse> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportCreateTokenAction
@Inject public TransportCreateTokenAction(ThreadPool threadPool, TransportService transportService, ActionFilters actionFilters, TokenService tokenService, AuthenticationService authenticationService, SecurityContext securityContext)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, CreateTokenRequest request, ActionListener<CreateTokenResponse> listener) - Specified by:
doExecutein classTransportAction<CreateTokenRequest,CreateTokenResponse>
-