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

    Constructors
    Constructor
    Description
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(Set<String> names, org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult> listener)
     
    void
     
     
    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)
     
    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)
     
    static Set<String>
    parseFileForRoleNames(Path path, org.apache.logging.log4j.Logger logger)
     
    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)
     
    static Path
    resolveFile(org.elasticsearch.env.Environment env)
     
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods 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:
      accept in interface BiConsumer<Set<String>,org.elasticsearch.action.ActionListener<org.elasticsearch.xpack.core.security.authz.store.RoleRetrievalResult>>
    • usageStats

      public Map<String,Object> usageStats()
    • addListener

      public void addListener(Consumer<Set<String>> consumer)
    • getFile

      public Path getFile()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • resolveFile

      public static Path resolveFile(org.elasticsearch.env.Environment env)
    • parseFileForRoleNames

      public static Set<String> parseFileForRoleNames(Path path, org.apache.logging.log4j.Logger logger)
    • 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)