Module org.elasticsearch.security
Class TransportGrantApiKeyAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<GrantApiKeyRequest,CreateApiKeyResponse>
org.elasticsearch.xpack.security.action.TransportGrantAction<GrantApiKeyRequest,CreateApiKeyResponse>
org.elasticsearch.xpack.security.action.apikey.TransportGrantApiKeyAction
public final class TransportGrantApiKeyAction
extends TransportGrantAction<GrantApiKeyRequest,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, authorizationService, threadContextFields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportGrantApiKeyAction(TransportService transportService, ActionFilters actionFilters, ThreadPool threadPool, AuthenticationService authenticationService, AuthorizationService authorizationService, ApiKeyService apiKeyService, CompositeRolesStore rolesStore, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecuteWithGrantAuthentication(Task task, GrantApiKeyRequest request, Authentication authentication, ActionListener<CreateApiKeyResponse> listener) Methods inherited from class org.elasticsearch.xpack.security.action.TransportGrantAction
doExecute, getAuthenticationTokenMethods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportGrantApiKeyAction
@Inject public TransportGrantApiKeyAction(TransportService transportService, ActionFilters actionFilters, ThreadPool threadPool, AuthenticationService authenticationService, AuthorizationService authorizationService, ApiKeyService apiKeyService, CompositeRolesStore rolesStore, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
-
-
Method Details
-
doExecuteWithGrantAuthentication
protected void doExecuteWithGrantAuthentication(Task task, GrantApiKeyRequest request, Authentication authentication, ActionListener<CreateApiKeyResponse> listener) - Specified by:
doExecuteWithGrantAuthenticationin classTransportGrantAction<GrantApiKeyRequest,CreateApiKeyResponse>
-