Module org.elasticsearch.security
Class TransportReloadRemoteClusterCredentialsAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<TransportReloadRemoteClusterCredentialsAction.Request,ActionResponse.Empty>
org.elasticsearch.xpack.security.action.settings.TransportReloadRemoteClusterCredentialsAction
public class TransportReloadRemoteClusterCredentialsAction
extends TransportAction<TransportReloadRemoteClusterCredentialsAction.Request,ActionResponse.Empty>
This is a local-only action which updates remote cluster credentials for remote cluster connections, from keystore settings reloaded via
a call to
RestReloadSecureSettingsAction.
It's invoked as part of the Security.reload(Settings) call.
This action is largely an implementation detail to work around the fact that Security is a plugin without direct access to many core
classes, including the RemoteClusterService which is required for a credentials reload. A transport action gives us access to
the RemoteClusterService which is injectable but not part of the plugin contract.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager -
Constructor Summary
ConstructorsConstructorDescriptionTransportReloadRemoteClusterCredentialsAction(TransportService transportService, ClusterService clusterService, ActionFilters actionFilters) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(Task task, TransportReloadRemoteClusterCredentialsAction.Request request, ActionListener<ActionResponse.Empty> listener) Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Constructor Details
-
TransportReloadRemoteClusterCredentialsAction
@Inject public TransportReloadRemoteClusterCredentialsAction(TransportService transportService, ClusterService clusterService, ActionFilters actionFilters)
-
-
Method Details
-
doExecute
protected void doExecute(Task task, TransportReloadRemoteClusterCredentialsAction.Request request, ActionListener<ActionResponse.Empty> listener) - Specified by:
doExecutein classTransportAction<TransportReloadRemoteClusterCredentialsAction.Request,ActionResponse.Empty>
-