Module org.elasticsearch.security
Class TransportGrantAction<Request extends GrantRequest,Response extends ActionResponse>
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.xpack.security.action.TransportGrantAction<Request,Response>
- Direct Known Subclasses:
TransportActivateProfileAction,TransportGrantApiKeyAction
public abstract class TransportGrantAction<Request extends GrantRequest,Response extends ActionResponse>
extends TransportAction<Request,Response>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AuthenticationServiceprotected final AuthorizationServiceprotected final ThreadContextFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGrantAction(String actionName, TransportService transportService, ActionFilters actionFilters, AuthenticationService authenticationService, AuthorizationService authorizationService, ThreadContext threadContext) -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddoExecute(Task task, Request request, ActionListener<Response> listener) protected abstract voiddoExecuteWithGrantAuthentication(Task task, Request request, Authentication authentication, ActionListener<Response> listener) static AuthenticationTokengetAuthenticationToken(Grant grant) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
authenticationService
-
authorizationService
-
threadContext
-
-
Constructor Details
-
TransportGrantAction
public TransportGrantAction(String actionName, TransportService transportService, ActionFilters actionFilters, AuthenticationService authenticationService, AuthorizationService authorizationService, ThreadContext threadContext)
-
-
Method Details
-
doExecute
- Specified by:
doExecutein classTransportAction<Request extends GrantRequest,Response extends ActionResponse>
-
doExecuteWithGrantAuthentication
protected abstract void doExecuteWithGrantAuthentication(Task task, Request request, Authentication authentication, ActionListener<Response> listener) -
getAuthenticationToken
-