Class TransportCreateTokenAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.token.CreateTokenRequest,org.elasticsearch.xpack.core.security.action.token.CreateTokenResponse>
org.elasticsearch.xpack.security.action.token.TransportCreateTokenAction
public final class TransportCreateTokenAction
extends org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.token.CreateTokenRequest,org.elasticsearch.xpack.core.security.action.token.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(org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, TokenService tokenService, AuthenticationService authenticationService, org.elasticsearch.xpack.core.security.SecurityContext securityContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.token.CreateTokenRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.token.CreateTokenResponse> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Constructor Details
-
TransportCreateTokenAction
@Inject public TransportCreateTokenAction(org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, TokenService tokenService, AuthenticationService authenticationService, org.elasticsearch.xpack.core.security.SecurityContext securityContext)
-
-
Method Details
-
doExecute
protected void doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.token.CreateTokenRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.token.CreateTokenResponse> listener) - Specified by:
doExecutein classorg.elasticsearch.action.support.TransportAction<org.elasticsearch.xpack.core.security.action.token.CreateTokenRequest,org.elasticsearch.xpack.core.security.action.token.CreateTokenResponse>
-