Package com.floragunn.searchguard.ssl
Class SearchGuardSSLPlugin
- java.lang.Object
-
- org.elasticsearch.plugins.Plugin
-
- com.floragunn.searchguard.ssl.SearchGuardSSLPlugin
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.plugins.ActionPlugin,org.elasticsearch.plugins.NetworkPlugin
- Direct Known Subclasses:
SearchGuardPlugin
public class SearchGuardSSLPlugin extends org.elasticsearch.plugins.Plugin implements org.elasticsearch.plugins.ActionPlugin, org.elasticsearch.plugins.NetworkPlugin
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanclientprotected static StringCLIENT_TYPEprotected PathconfigPathprotected booleanhttpSSLEnabledprotected org.apache.logging.log4j.Loggerlogstatic booleanOPENSSL_SUPPORTEDprotected PrincipalExtractorprincipalExtractorprotected org.elasticsearch.common.settings.Settingssettingsprotected SearchGuardKeyStoresgksprotected org.elasticsearch.transport.SharedGroupFactorysharedGroupFactoryprotected booleantransportSSLEnabled
-
Constructor Summary
Constructors Modifier Constructor Description protectedSearchGuardSSLPlugin(org.elasticsearch.common.settings.Settings settings, Path configPath, boolean disabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.elasticsearch.common.settings.SettingsadditionalSettings()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.common.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)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.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, org.elasticsearch.common.settings.ClusterSettings clusterSettings)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)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)-
Methods inherited from class org.elasticsearch.plugins.Plugin
close, createGuiceModules, getBootstrapChecks, getExecutorBuilders, getFeature, getGuiceServiceClasses, getIndexTemplateMetadataUpgrader, getNamedWriteables, getNamedXContent, getRoles, getSettingUpgraders, onIndexModule
-
-
-
-
Field Detail
-
OPENSSL_SUPPORTED
public static final boolean OPENSSL_SUPPORTED
- See Also:
- Constant Field Values
-
log
protected final org.apache.logging.log4j.Logger log
-
CLIENT_TYPE
protected static final String CLIENT_TYPE
- See Also:
- Constant Field Values
-
client
protected final boolean client
-
httpSSLEnabled
protected final boolean httpSSLEnabled
-
transportSSLEnabled
protected final boolean transportSSLEnabled
-
settings
protected final org.elasticsearch.common.settings.Settings settings
-
sgks
protected final SearchGuardKeyStore sgks
-
principalExtractor
protected PrincipalExtractor principalExtractor
-
configPath
protected final Path configPath
-
sharedGroupFactory
protected final org.elasticsearch.transport.SharedGroupFactory sharedGroupFactory
-
-
Constructor Detail
-
SearchGuardSSLPlugin
protected SearchGuardSSLPlugin(org.elasticsearch.common.settings.Settings settings, Path configPath, boolean disabled)
-
-
Method Detail
-
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.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.common.network.NetworkService networkService, org.elasticsearch.http.HttpServerTransport.Dispatcher dispatcher, org.elasticsearch.common.settings.ClusterSettings clusterSettings)
- Specified by:
getHttpTransportsin interfaceorg.elasticsearch.plugins.NetworkPlugin
-
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
-
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
-
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
-
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.common.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 classorg.elasticsearch.plugins.Plugin
-
getSettings
public List<org.elasticsearch.common.settings.Setting<?>> getSettings()
- Overrides:
getSettingsin classorg.elasticsearch.plugins.Plugin
-
additionalSettings
public org.elasticsearch.common.settings.Settings additionalSettings()
- Overrides:
additionalSettingsin classorg.elasticsearch.plugins.Plugin
-
-