Class FileRolesStore
java.lang.Object
org.elasticsearch.xpack.security.authz.store.FileRolesStore
- All Implemented Interfaces:
BiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>
public class FileRolesStore
extends Object
implements BiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>
-
Constructor Summary
ConstructorsConstructorDescriptionFileRolesStore(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.Environment env, org.elasticsearch.watcher.ResourceWatcherService watcherService, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Set<String> names, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult> listener) voidaddListener(Consumer<Set<String>> consumer) getFile()parseFile(Path path, org.apache.logging.log4j.Logger logger, boolean resolvePermission, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) parseFile(Path path, org.apache.logging.log4j.Logger logger, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) parseFileForRoleNames(Path path, org.apache.logging.log4j.Logger logger) parseRoleDescriptors(Path path, org.apache.logging.log4j.Logger logger, boolean resolvePermission, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) static PathresolveFile(org.elasticsearch.env.Environment env) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.BiConsumer
andThen
-
Constructor Details
-
FileRolesStore
public FileRolesStore(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.env.Environment env, org.elasticsearch.watcher.ResourceWatcherService watcherService, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) throws IOException - Throws:
IOException
-
-
Method Details
-
accept
public void accept(Set<String> names, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult> listener) - Specified by:
acceptin interfaceBiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>
-
usageStats
-
addListener
-
getFile
-
toString
-
resolveFile
-
parseFileForRoleNames
-
parseFile
public static Map<String,org.elasticsearch.xpack.core.security.authz.RoleDescriptor> parseFile(Path path, org.apache.logging.log4j.Logger logger, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) -
parseFile
public static Map<String,org.elasticsearch.xpack.core.security.authz.RoleDescriptor> parseFile(Path path, org.apache.logging.log4j.Logger logger, boolean resolvePermission, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.license.XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry) -
parseRoleDescriptors
public static Map<String,org.elasticsearch.xpack.core.security.authz.RoleDescriptor> parseRoleDescriptors(Path path, org.apache.logging.log4j.Logger logger, boolean resolvePermission, org.elasticsearch.common.settings.Settings settings, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry)
-