Module org.elasticsearch.security
Class TransportCloneApiKeyAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<CloneApiKeyRequest,CreateApiKeyResponse>
org.elasticsearch.action.support.HandledTransportAction<CloneApiKeyRequest,CreateApiKeyResponse>
org.elasticsearch.xpack.security.action.apikey.TransportCloneApiKeyAction
public final class TransportCloneApiKeyAction
extends HandledTransportAction<CloneApiKeyRequest,CreateApiKeyResponse>
Transport action for cloning an API key. Validates the source credential and creates a new key
with the same role descriptors and creator, with a new name, id, and optional expiration/metadata.
-
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportCloneApiKeyAction(TransportService transportService, ActionFilters actionFilters, ApiKeyService apiKeyService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(Task task, CloneApiKeyRequest request, ActionListener<CreateApiKeyResponse> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportCloneApiKeyAction
@Inject public TransportCloneApiKeyAction(TransportService transportService, ActionFilters actionFilters, ApiKeyService apiKeyService)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, CloneApiKeyRequest request, ActionListener<CreateApiKeyResponse> listener) - Specified by:
doExecutein classTransportAction<CloneApiKeyRequest,CreateApiKeyResponse>
-