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, threadContext

    Fields inherited from class org.elasticsearch.action.support.TransportAction

    actionName, logger, taskManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class org.elasticsearch.xpack.security.action.TransportGrantAction

    executeWithGrantAuthentication

    Methods inherited from class org.elasticsearch.action.support.TransportAction

    execute

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      doExecute in class org.elasticsearch.action.support.TransportAction<org.elasticsearch.xpack.core.security.action.apikey.GrantApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>