Package org.elasticsearch.xpack.security
Class Security
java.lang.Object
org.elasticsearch.plugins.Plugin
org.elasticsearch.xpack.security.Security
- All Implemented Interfaces:
Closeable,AutoCloseable,org.elasticsearch.plugins.ActionPlugin,org.elasticsearch.plugins.ClusterPlugin,org.elasticsearch.plugins.DiscoveryPlugin,org.elasticsearch.plugins.ExtensiblePlugin,org.elasticsearch.plugins.IngestPlugin,org.elasticsearch.plugins.MapperPlugin,org.elasticsearch.plugins.NetworkPlugin,org.elasticsearch.plugins.SearchPlugin,org.elasticsearch.plugins.SystemIndexPlugin
public class Security
extends org.elasticsearch.plugins.Plugin
implements org.elasticsearch.plugins.SystemIndexPlugin, org.elasticsearch.plugins.IngestPlugin, org.elasticsearch.plugins.NetworkPlugin, org.elasticsearch.plugins.ClusterPlugin, org.elasticsearch.plugins.DiscoveryPlugin, org.elasticsearch.plugins.MapperPlugin, org.elasticsearch.plugins.ExtensiblePlugin, org.elasticsearch.plugins.SearchPlugin
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.plugins.ActionPlugin
org.elasticsearch.plugins.ActionPlugin.ActionHandler<Request extends org.elasticsearch.action.ActionRequest,Response extends org.elasticsearch.action.ActionResponse> Nested classes/interfaces inherited from interface org.elasticsearch.plugins.ExtensiblePlugin
org.elasticsearch.plugins.ExtensiblePlugin.ExtensionLoaderNested classes/interfaces inherited from interface org.elasticsearch.plugins.SearchPlugin
org.elasticsearch.plugins.SearchPlugin.AggregationSpec, org.elasticsearch.plugins.SearchPlugin.FetchPhaseConstructionContext, org.elasticsearch.plugins.SearchPlugin.PipelineAggregationSpec, org.elasticsearch.plugins.SearchPlugin.QuerySpec<T extends org.elasticsearch.index.query.QueryBuilder>, org.elasticsearch.plugins.SearchPlugin.RescorerSpec<T extends org.elasticsearch.search.rescore.RescorerBuilder<T>>, org.elasticsearch.plugins.SearchPlugin.ScoreFunctionSpec<T extends org.elasticsearch.index.query.functionscore.ScoreFunctionBuilder<T>>, org.elasticsearch.plugins.SearchPlugin.SearchExtensionSpec<W extends org.elasticsearch.common.io.stream.NamedWriteable,P extends Object>, org.elasticsearch.plugins.SearchPlugin.SearchExtSpec<T extends org.elasticsearch.search.SearchExtBuilder>, org.elasticsearch.plugins.SearchPlugin.SignificanceHeuristicSpec<T extends org.elasticsearch.search.aggregations.bucket.terms.heuristic.SignificanceHeuristic>, org.elasticsearch.plugins.SearchPlugin.SuggesterSpec<T extends org.elasticsearch.search.suggest.SuggestionBuilder<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Momentarystatic final org.elasticsearch.license.LicensedFeature.Momentarystatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Momentarystatic final org.elasticsearch.license.LicensedFeature.Momentarystatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Momentarystatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final org.elasticsearch.license.LicensedFeature.Persistentstatic final Stringstatic final org.elasticsearch.license.LicensedFeature.MomentaryFields inherited from interface org.elasticsearch.plugins.MapperPlugin
NOOP_FIELD_FILTER, NOOP_FIELD_PREDICATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.common.settings.SettingscreateComponents(org.elasticsearch.client.internal.Client client, 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 expressionResolver, Supplier<org.elasticsearch.repositories.RepositoriesService> repositoriesServiceSupplier) List<org.elasticsearch.action.support.ActionFilter>List<org.elasticsearch.plugins.ActionPlugin.ActionHandler<? extends org.elasticsearch.action.ActionRequest,? extends org.elasticsearch.action.ActionResponse>> List<org.elasticsearch.bootstrap.BootstrapCheck>protected ClockgetClock()List<org.elasticsearch.threadpool.ExecutorBuilder<?>>getExecutorBuilders(org.elasticsearch.common.settings.Settings settings) 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, org.elasticsearch.common.settings.ClusterSettings clusterSettings) UnaryOperator<Map<String,org.elasticsearch.cluster.metadata.IndexTemplateMetadata>> BiConsumer<org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.cluster.ClusterState> protected org.elasticsearch.license.XPackLicenseStategetProcessors(org.elasticsearch.ingest.Processor.Parameters parameters) org.elasticsearch.common.CheckedBiConsumer<org.elasticsearch.search.internal.ShardSearchRequest,org.elasticsearch.common.io.stream.StreamOutput, IOException> 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) Collection<org.elasticsearch.rest.RestHeaderDefinition>List<org.elasticsearch.common.settings.Setting<?>>static List<org.elasticsearch.common.settings.Setting<?>>getSettings(List<org.elasticsearch.xpack.core.security.SecurityExtension> securityExtensions) Get thesetting configurationfor all security components, including those defined in extensions.protected org.elasticsearch.xpack.core.ssl.SSLServiceCollection<org.elasticsearch.indices.SystemIndexDescriptor>getSystemIndexDescriptors(org.elasticsearch.common.settings.Settings settings) List<org.elasticsearch.transport.TransportInterceptor>getTransportInterceptors(org.elasticsearch.common.io.stream.NamedWriteableRegistry namedWriteableRegistry, org.elasticsearch.common.util.concurrent.ThreadContext threadContext) 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) voidloadExtensions(org.elasticsearch.plugins.ExtensiblePlugin.ExtensionLoader loader) voidonIndexModule(org.elasticsearch.index.IndexModule module) voidMethods inherited from class org.elasticsearch.plugins.Plugin
close, getAdditionalIndexSettingProviders, getNamedWriteables, getNamedXContent, getSettingUpgradersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.plugins.ActionPlugin
getClientActions, getTaskHeaders, indicesAliasesRequestValidators, mappingRequestValidatorsMethods inherited from interface org.elasticsearch.plugins.ClusterPlugin
createAllocationDeciders, getExistingShardsAllocators, getShardsAllocatorsMethods inherited from interface org.elasticsearch.plugins.DiscoveryPlugin
getCustomNameResolver, getElectionStrategies, getSeedHostProvidersMethods inherited from interface org.elasticsearch.plugins.MapperPlugin
getMappers, getMetadataMappers, getRuntimeFieldsMethods inherited from interface org.elasticsearch.plugins.SearchPlugin
getAggregationExtentions, getAggregations, getFetchSubPhases, getHighlighters, getPipelineAggregations, getQueries, getRescorers, getScoreFunctions, getSearchExts, getSignificanceHeuristics, getSuggestersMethods inherited from interface org.elasticsearch.plugins.SystemIndexPlugin
cleanUpFeature, getAssociatedIndexDescriptors, getSystemDataStreamDescriptors, indicesMigrationComplete, prepareForIndicesMigration
-
Field Details
-
SECURITY_CRYPTO_THREAD_POOL_NAME
- See Also:
-
IP_FILTERING_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary IP_FILTERING_FEATURE -
AUDITING_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary AUDITING_FEATURE -
TOKEN_SERVICE_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary TOKEN_SERVICE_FEATURE -
LDAP_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent LDAP_REALM_FEATURE -
AD_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent AD_REALM_FEATURE -
PKI_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent PKI_REALM_FEATURE -
SAML_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent SAML_REALM_FEATURE -
OIDC_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent OIDC_REALM_FEATURE -
KERBEROS_REALM_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent KERBEROS_REALM_FEATURE -
CUSTOM_REALMS_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent CUSTOM_REALMS_FEATURE -
DELEGATED_AUTHORIZATION_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary DELEGATED_AUTHORIZATION_FEATURE -
AUTHORIZATION_ENGINE_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary AUTHORIZATION_ENGINE_FEATURE -
CUSTOM_ROLE_PROVIDERS_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Persistent CUSTOM_ROLE_PROVIDERS_FEATURE -
OPERATOR_PRIVILEGES_FEATURE
public static final org.elasticsearch.license.LicensedFeature.Momentary OPERATOR_PRIVILEGES_FEATURE
-
-
Constructor Details
-
Security
-
-
Method Details
-
getClock
-
getSslService
protected org.elasticsearch.xpack.core.ssl.SSLService getSslService() -
getLicenseState
protected org.elasticsearch.license.XPackLicenseState getLicenseState() -
createComponents
public Collection<Object> createComponents(org.elasticsearch.client.internal.Client client, 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 expressionResolver, Supplier<org.elasticsearch.repositories.RepositoriesService> repositoriesServiceSupplier) - Overrides:
createComponentsin classorg.elasticsearch.plugins.Plugin
-
additionalSettings
public org.elasticsearch.common.settings.Settings additionalSettings()- Overrides:
additionalSettingsin classorg.elasticsearch.plugins.Plugin
-
getSettings
- Overrides:
getSettingsin classorg.elasticsearch.plugins.Plugin
-
getSettings
public static List<org.elasticsearch.common.settings.Setting<?>> getSettings(List<org.elasticsearch.xpack.core.security.SecurityExtension> securityExtensions) Get thesetting configurationfor all security components, including those defined in extensions. -
getRestHeaders
- Specified by:
getRestHeadersin interfaceorg.elasticsearch.plugins.ActionPlugin
-
getSettingsFilter
- Overrides:
getSettingsFilterin classorg.elasticsearch.plugins.Plugin
-
getBootstrapChecks
- Overrides:
getBootstrapChecksin classorg.elasticsearch.plugins.Plugin
-
onIndexModule
public void onIndexModule(org.elasticsearch.index.IndexModule module) - Overrides:
onIndexModulein classorg.elasticsearch.plugins.Plugin
-
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
-
getActionFilters
- Specified by:
getActionFiltersin interfaceorg.elasticsearch.plugins.ActionPlugin
-
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
-
getProcessors
public Map<String,org.elasticsearch.ingest.Processor.Factory> getProcessors(org.elasticsearch.ingest.Processor.Parameters parameters) - Specified by:
getProcessorsin interfaceorg.elasticsearch.plugins.IngestPlugin
-
onNodeStarted
public void onNodeStarted()- Specified by:
onNodeStartedin interfaceorg.elasticsearch.plugins.ClusterPlugin
-
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
-
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, org.elasticsearch.common.settings.ClusterSettings clusterSettings) - Specified by:
getHttpTransportsin interfaceorg.elasticsearch.plugins.NetworkPlugin
-
getRestHandlerWrapper
public UnaryOperator<org.elasticsearch.rest.RestHandler> getRestHandlerWrapper(org.elasticsearch.common.util.concurrent.ThreadContext threadContext) - Specified by:
getRestHandlerWrapperin interfaceorg.elasticsearch.plugins.ActionPlugin
-
getExecutorBuilders
public List<org.elasticsearch.threadpool.ExecutorBuilder<?>> getExecutorBuilders(org.elasticsearch.common.settings.Settings settings) - Overrides:
getExecutorBuildersin classorg.elasticsearch.plugins.Plugin
-
getIndexTemplateMetadataUpgrader
public UnaryOperator<Map<String,org.elasticsearch.cluster.metadata.IndexTemplateMetadata>> getIndexTemplateMetadataUpgrader()- Overrides:
getIndexTemplateMetadataUpgraderin classorg.elasticsearch.plugins.Plugin
-
getFieldFilter
- Specified by:
getFieldFilterin interfaceorg.elasticsearch.plugins.MapperPlugin
-
getJoinValidator
public BiConsumer<org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.cluster.ClusterState> getJoinValidator()- Specified by:
getJoinValidatorin interfaceorg.elasticsearch.plugins.DiscoveryPlugin
-
loadExtensions
public void loadExtensions(org.elasticsearch.plugins.ExtensiblePlugin.ExtensionLoader loader) - Specified by:
loadExtensionsin interfaceorg.elasticsearch.plugins.ExtensiblePlugin
-
getSystemIndexDescriptors
public Collection<org.elasticsearch.indices.SystemIndexDescriptor> getSystemIndexDescriptors(org.elasticsearch.common.settings.Settings settings) - Specified by:
getSystemIndexDescriptorsin interfaceorg.elasticsearch.plugins.SystemIndexPlugin
-
getFeatureName
- Specified by:
getFeatureNamein interfaceorg.elasticsearch.plugins.SystemIndexPlugin
-
getFeatureDescription
- Specified by:
getFeatureDescriptionin interfaceorg.elasticsearch.plugins.SystemIndexPlugin
-
getRequestCacheKeyDifferentiator
public org.elasticsearch.common.CheckedBiConsumer<org.elasticsearch.search.internal.ShardSearchRequest,org.elasticsearch.common.io.stream.StreamOutput, getRequestCacheKeyDifferentiator()IOException> - Specified by:
getRequestCacheKeyDifferentiatorin interfaceorg.elasticsearch.plugins.SearchPlugin
-