Class EntitlementBootstrap
java.lang.Object
org.elasticsearch.entitlement.bootstrap.EntitlementBootstrap
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidbootstrap(Policy serverPolicyPatch, Map<String, Policy> pluginPolicies, Function<Class<?>, PolicyManager.PolicyScope> scopeResolver, Function<String, Stream<String>> settingResolver, Path[] dataDirs, Path sharedDataDir, Path[] sharedRepoDirs, Path configDir, Path libDir, Path modulesDir, Path pluginsDir, Map<String, Path> sourcePaths, Path logsDir, Path tempDir, Path pidFile, Set<Package> suppressFailureLogPackages) Activates entitlement checking.static String
-
Constructor Details
-
EntitlementBootstrap
public EntitlementBootstrap()
-
-
Method Details
-
bootstrapArgs
-
bootstrap
public static void bootstrap(Policy serverPolicyPatch, Map<String, Policy> pluginPolicies, Function<Class<?>, PolicyManager.PolicyScope> scopeResolver, Function<String, Stream<String>> settingResolver, Path[] dataDirs, Path sharedDataDir, Path[] sharedRepoDirs, Path configDir, Path libDir, Path modulesDir, Path pluginsDir, Map<String, Path> sourcePaths, Path logsDir, Path tempDir, Path pidFile, Set<Package> suppressFailureLogPackages) Activates entitlement checking. Once this method returns, calls to methods protected by Entitlements from classes without a valid policy will throwNotEntitledException.- Parameters:
serverPolicyPatch- a policy with additional entitlements to patch the embedded server layer policypluginPolicies- a map holding policies for plugins (and modules), by plugin (or module) name.scopeResolver- a functor to map a Java Class to the component and module it belongs to.settingResolver- a functor to resolve a setting name pattern for one or more Elasticsearch settings.dataDirs- data directories for ElasticsearchsharedDataDir- shared data directory for Elasticsearch (deprecated)sharedRepoDirs- shared repository directories for ElasticsearchconfigDir- the config directory for ElasticsearchlibDir- the lib directory for ElasticsearchmodulesDir- the directory where Elasticsearch modules arepluginsDir- the directory where plugins are installed for ElasticsearchsourcePaths- a map holding the path to each plugin or module jars, by plugin (or module) name.logsDir- the log directory for ElasticsearchtempDir- the temp directory for ElasticsearchpidFile- path to a pid file for Elasticsearch, ornullif one was not specifiedsuppressFailureLogPackages- packages for which we do not need or want to log Entitlements failures
-
findAgentJar
-