Package com.floragunn.searchguard
Class SearchGuardPlugin
- java.lang.Object
-
- org.elasticsearch.plugins.Plugin
-
- com.floragunn.searchguard.ssl.SearchGuardSSLPlugin
-
- com.floragunn.searchguard.SearchGuardPlugin
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.plugins.ActionPlugin,org.elasticsearch.plugins.ClusterPlugin,org.elasticsearch.plugins.MapperPlugin,org.elasticsearch.plugins.NetworkPlugin,org.elasticsearch.plugins.ScriptPlugin
public final class SearchGuardPlugin extends SearchGuardSSLPlugin implements org.elasticsearch.plugins.ClusterPlugin, org.elasticsearch.plugins.MapperPlugin, org.elasticsearch.plugins.ScriptPlugin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchGuardPlugin.ProtectedIndices
-
Field Summary
-
Fields inherited from class com.floragunn.searchguard.ssl.SearchGuardSSLPlugin
client, CLIENT_TYPE, configPath, httpSSLEnabled, log, OPENSSL_SUPPORTED, principalExtractor, settings, sgks, sharedGroupFactory, transportSSLEnabled
-
-
Constructor Summary
Constructors Constructor Description SearchGuardPlugin(org.elasticsearch.common.settings.Settings settings, Path configPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.common.settings.SettingsadditionalSettings()voidclose()Collection<Object>createComponents(org.elasticsearch.client.Client localClient, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.watcher.ResourceWatcherService resourceWatcherService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.env.Environment environment, org.elasticsearch.env.NodeEnvironment nodeEnvironment, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, Supplier<org.elasticsearch.repositories.RepositoriesService> repositoriesServiceSupplier)List<org.elasticsearch.action.support.ActionFilter>getActionFilters()List<org.elasticsearch.plugins.ActionPlugin.ActionHandler<? extends org.elasticsearch.action.ActionRequest,? extends org.elasticsearch.action.ActionResponse>>getActions()List<org.elasticsearch.script.ScriptContext<?>>getContexts()Function<String,Predicate<String>>getFieldFilter()Collection<Class<? extends org.elasticsearch.common.component.LifecycleComponent>>getGuiceServiceClasses()Map<String,Supplier<org.elasticsearch.http.HttpServerTransport>>getHttpTransports(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, BiConsumer<org.elasticsearch.http.HttpPreRequest,org.elasticsearch.common.util.concurrent.ThreadContext> perRequestThreadContext, org.elasticsearch.common.settings.ClusterSettings clusterSettings)static SearchGuardPlugin.ProtectedIndicesgetProtectedIndices()List<org.elasticsearch.rest.RestHandler>getRestHandlers(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController restController, org.elasticsearch.common.settings.ClusterSettings clusterSettings, org.elasticsearch.common.settings.IndexScopedSettings indexScopedSettings, org.elasticsearch.common.settings.SettingsFilter settingsFilter, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, Supplier<org.elasticsearch.cluster.node.DiscoveryNodes> nodesInCluster)UnaryOperator<org.elasticsearch.rest.RestHandler>getRestHandlerWrapper(org.elasticsearch.common.util.concurrent.ThreadContext threadContext)List<org.elasticsearch.common.settings.Setting<?>>getSettings()List<String>getSettingsFilter()List<org.elasticsearch.transport.TransportInterceptor>getTransportInterceptors(org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)Map<String,Supplier<org.elasticsearch.transport.Transport>>getTransports(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.network.NetworkService networkService)voidonIndexModule(org.elasticsearch.index.IndexModule indexModule)voidonNodeStarted()-
Methods inherited from class org.elasticsearch.plugins.Plugin
createGuiceModules, getAdditionalIndexSettingProviders, getBootstrapChecks, getExecutorBuilders, getFeature, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettingUpgraders
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.plugins.ActionPlugin
getClientActions, getRestHeaders, getTaskHeaders, indicesAliasesRequestValidators, mappingRequestValidators
-
Methods inherited from interface org.elasticsearch.plugins.ClusterPlugin
createAllocationDeciders, getExistingShardsAllocators, getShardsAllocators
-
-
-
-
Constructor Detail
-
SearchGuardPlugin
public SearchGuardPlugin(org.elasticsearch.common.settings.Settings settings, Path configPath)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.elasticsearch.plugins.Plugin- Throws:
IOException
-
getRestHandlers
public List<org.elasticsearch.rest.RestHandler> getRestHandlers(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController restController, org.elasticsearch.common.settings.ClusterSettings clusterSettings, org.elasticsearch.common.settings.IndexScopedSettings indexScopedSettings, org.elasticsearch.common.settings.SettingsFilter settingsFilter, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, Supplier<org.elasticsearch.cluster.node.DiscoveryNodes> nodesInCluster)
- Specified by:
getRestHandlersin interfaceorg.elasticsearch.plugins.ActionPlugin- Overrides:
getRestHandlersin classSearchGuardSSLPlugin
-
getRestHandlerWrapper
public UnaryOperator<org.elasticsearch.rest.RestHandler> getRestHandlerWrapper(org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
- Specified by:
getRestHandlerWrapperin interfaceorg.elasticsearch.plugins.ActionPlugin
-
getActions
public List<org.elasticsearch.plugins.ActionPlugin.ActionHandler<? extends org.elasticsearch.action.ActionRequest,? extends org.elasticsearch.action.ActionResponse>> getActions()
- Specified by:
getActionsin interfaceorg.elasticsearch.plugins.ActionPlugin
-
getContexts
public List<org.elasticsearch.script.ScriptContext<?>> getContexts()
- Specified by:
getContextsin interfaceorg.elasticsearch.plugins.ScriptPlugin
-
onIndexModule
public void onIndexModule(org.elasticsearch.index.IndexModule indexModule)
- Overrides:
onIndexModulein classorg.elasticsearch.plugins.Plugin
-
getActionFilters
public List<org.elasticsearch.action.support.ActionFilter> getActionFilters()
- Specified by:
getActionFiltersin interfaceorg.elasticsearch.plugins.ActionPlugin
-
getTransportInterceptors
public List<org.elasticsearch.transport.TransportInterceptor> getTransportInterceptors(org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.util.concurrent.ThreadContext threadContext)
- Specified by:
getTransportInterceptorsin interfaceorg.elasticsearch.plugins.NetworkPlugin- Overrides:
getTransportInterceptorsin classSearchGuardSSLPlugin
-
getTransports
public Map<String,Supplier<org.elasticsearch.transport.Transport>> getTransports(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.network.NetworkService networkService)
- Specified by:
getTransportsin interfaceorg.elasticsearch.plugins.NetworkPlugin- Overrides:
getTransportsin classSearchGuardSSLPlugin
-
getHttpTransports
public Map<String,Supplier<org.elasticsearch.http.HttpServerTransport>> getHttpTransports(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.common.util.BigArrays bigArrays, org.elasticsearch.common.util.PageCacheRecycler pageCacheRecycler, org.elasticsearch.indices.breaker.CircuitBreakerService circuitBreakerService, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, BiConsumer<org.elasticsearch.http.HttpPreRequest,org.elasticsearch.common.util.concurrent.ThreadContext> perRequestThreadContext, org.elasticsearch.common.settings.ClusterSettings clusterSettings)
- Specified by:
getHttpTransportsin interfaceorg.elasticsearch.plugins.NetworkPlugin- Overrides:
getHttpTransportsin classSearchGuardSSLPlugin
-
createComponents
public Collection<Object> createComponents(org.elasticsearch.client.Client localClient, org.elasticsearch.cluster.service.ClusterService clusterService, org.elasticsearch.threadpool.ThreadPool threadPool, org.elasticsearch.watcher.ResourceWatcherService resourceWatcherService, org.elasticsearch.script.ScriptService scriptService, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.env.Environment environment, org.elasticsearch.env.NodeEnvironment nodeEnvironment, org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.cluster.metadata.IndexNameExpressionResolver indexNameExpressionResolver, Supplier<org.elasticsearch.repositories.RepositoriesService> repositoriesServiceSupplier)
- Overrides:
createComponentsin classSearchGuardSSLPlugin
-
additionalSettings
public org.elasticsearch.common.settings.Settings additionalSettings()
- Overrides:
additionalSettingsin classSearchGuardSSLPlugin
-
getSettings
public List<org.elasticsearch.common.settings.Setting<?>> getSettings()
- Overrides:
getSettingsin classSearchGuardSSLPlugin
-
getSettingsFilter
public List<String> getSettingsFilter()
- Overrides:
getSettingsFilterin classSearchGuardSSLPlugin
-
onNodeStarted
public void onNodeStarted()
- Specified by:
onNodeStartedin interfaceorg.elasticsearch.plugins.ClusterPlugin
-
getGuiceServiceClasses
public Collection<Class<? extends org.elasticsearch.common.component.LifecycleComponent>> getGuiceServiceClasses()
- Overrides:
getGuiceServiceClassesin classorg.elasticsearch.plugins.Plugin
-
getFieldFilter
public Function<String,Predicate<String>> getFieldFilter()
- Specified by:
getFieldFilterin interfaceorg.elasticsearch.plugins.MapperPlugin
-
getProtectedIndices
public static SearchGuardPlugin.ProtectedIndices getProtectedIndices()
-
-