Class TransportCreateApiKeyAction

java.lang.Object
org.elasticsearch.action.support.TransportAction<Request,Response>
org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>
org.elasticsearch.xpack.security.action.apikey.TransportCreateApiKeyAction

public final class TransportCreateApiKeyAction extends org.elasticsearch.action.support.HandledTransportAction<org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>
Implementation of the action needed to create an API key
  • Field Summary

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

    actionName, logger, taskManager
  • Constructor Summary

    Constructors
    Constructor
    Description
    TransportCreateApiKeyAction(org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, ApiKeyService apiKeyService, org.elasticsearch.xpack.core.security.SecurityContext context, 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.CreateApiKeyRequest request, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse> listener)
     

    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

    • TransportCreateApiKeyAction

      @Inject public TransportCreateApiKeyAction(org.elasticsearch.transport.TransportService transportService, org.elasticsearch.action.support.ActionFilters actionFilters, ApiKeyService apiKeyService, org.elasticsearch.xpack.core.security.SecurityContext context, 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.CreateApiKeyRequest 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.CreateApiKeyRequest,org.elasticsearch.xpack.core.security.action.apikey.CreateApiKeyResponse>