Class TransportGrantApiKeyAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<Request,Response>
org.elasticsearch.xpack.security.action.TransportGrantAction<org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>
org.elasticsearch.xpack.security.action.apikey.TransportGrantApiKeyAction
public final class TransportGrantApiKeyAction
extends TransportGrantAction<org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>
Implementation of the action needed to create an API key on behalf of another user (using an OAuth style "grant")
-
Field Summary
Fields inherited from class org.elasticsearch.xpack.security.action.TransportGrantAction
authenticationService, threadContextFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGrantApiKeyAction(org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.threadpool.ThreadPool threadPool, ApiKeyService apiKeyService, AuthenticationService authenticationService, CompositeRolesStore rolesStore, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse> listener) Methods inherited from class org.elasticsearch.xpack.security.action.TransportGrantAction
executeWithGrantAuthenticationMethods inherited from class org.elasticsearch.action.support.TransportAction
execute
-
Constructor Details
-
TransportGrantApiKeyAction
@Inject public TransportGrantApiKeyAction(org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, org.elasticsearch.threadpool.ThreadPool threadPool, ApiKeyService apiKeyService, AuthenticationService authenticationService, CompositeRolesStore rolesStore, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
-
-
Method Details
-
doExecute
protected void doExecute(org.elasticsearch.tasks.Task task, org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse> listener) - Specified by:
doExecutein classorg.elasticsearch.action.support.TransportAction<org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>
-