Module org.elasticsearch.security
Class FileRolesStore
java.lang.Object
org.elasticsearch.xpack.security.authz.store.FileRolesStore
- All Implemented Interfaces:
BiConsumer<Set<String>,ActionListener<RoleRetrievalResult>>
public class FileRolesStore
extends Object
implements BiConsumer<Set<String>,ActionListener<RoleRetrievalResult>>
-
Constructor Summary
ConstructorsConstructorDescriptionFileRolesStore(Settings settings, Environment env, ResourceWatcherService watcherService, XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, FileRoleValidator roleValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(Set<String> names, ActionListener<RoleRetrievalResult> listener) voidaddListener(Consumer<Set<String>> consumer) booleangetFile()static Map<String, RoleDescriptor> parseFile(Path path, org.apache.logging.log4j.Logger logger, Settings settings, XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, FileRoleValidator roleValidator) parseFileForRoleNames(Path path, org.apache.logging.log4j.Logger logger) static PathresolveFile(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(Settings settings, Environment env, ResourceWatcherService watcherService, XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, FileRoleValidator roleValidator) throws IOException - Throws:
IOException
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceBiConsumer<Set<String>,ActionListener<RoleRetrievalResult>>
-
exists
-
usageStats
-
addListener
-
getFile
-
getAllRoleDescriptors
- Returns:
- a map of all file role definitions. The returned map is unmodifiable.
-
toString
-
resolveFile
-
parseFileForRoleNames
-
parseFile
public static Map<String,RoleDescriptor> parseFile(Path path, org.apache.logging.log4j.Logger logger, Settings settings, XPackLicenseState licenseState, org.elasticsearch.xcontent.NamedXContentRegistry xContentRegistry, FileRoleValidator roleValidator)
-