Module org.elasticsearch.xcore
Interface AuthorizationEngine.AuthorizedIndices
- Enclosing interface:
AuthorizationEngine
public static interface AuthorizationEngine.AuthorizedIndices
Used to retrieve index-like resources that the user has access to, for a specific access action type and selector,
at a specific point in time (for a fixed cluster state view).
It can also be used to check if a specific resource name is authorized (access to the resource name
can be authorized even if it doesn't exist).
-
Method Summary
Modifier and TypeMethodDescriptionall(IndexComponentSelector selector) Returns all the index-like resource names that are available and accessible for an action type and selector by a user, at a fixed point in time (for a single cluster state view).booleancheck(String name, IndexComponentSelector selector) Checks if an index-like resource name is authorized, for an action by a user.
-
Method Details
-
all
Returns all the index-like resource names that are available and accessible for an action type and selector by a user, at a fixed point in time (for a single cluster state view). The result is cached and subsequent calls to this method are idempotent. -
check
Checks if an index-like resource name is authorized, for an action by a user. The resource might or might not exist.
-