java.lang.Object
org.elasticsearch.xpack.core.security.authz.permission.FieldPermissionsCache

public final class FieldPermissionsCache extends Object
A service for managing the caching of FieldPermissions as these may often need to be combined or created and internally they use an Automaton, which can be costly to create once you account for minimization
  • Field Details

    • CACHE_SIZE_SETTING

      public static final Setting<Long> CACHE_SIZE_SETTING
  • Constructor Details

    • FieldPermissionsCache

      public FieldPermissionsCache(Settings settings)
  • Method Details

    • getCacheStats

      public Cache.Stats getCacheStats()
    • getFieldPermissions

      public FieldPermissions getFieldPermissions(FieldPermissionsDefinition fieldPermissionsDefinition)
      Gets a FieldPermissions instance that corresponds to the granted and denied parameters. The instance may come from the cache or if it gets created, the instance will be cached