Module org.elasticsearch.xcore
Class ClusterPermission
java.lang.Object
org.elasticsearch.xpack.core.security.authz.permission.ClusterPermission
A permission that is based on privileges for cluster wide actions, with the optional ability to inspect the request object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBase for implementing cluster action basedClusterPermission.PermissionCheck.static classstatic interfaceEvaluates whether the cluster actions (optionally for a given request) is permitted by this permission. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterPermission.Builderbuilder()booleancheck(String action, TransportRequest request, Authentication authentication) Checks permission to a cluster action for a given request in the context of given authentication.booleanimplies(ClusterPermission otherClusterPermission) Checks if the specifiedClusterPermission's actions are implied by thisClusterPermission
-
Field Details
-
NONE
-
-
Method Details
-
check
Checks permission to a cluster action for a given request in the context of given authentication.- Parameters:
action- cluster actionrequest-TransportRequestauthentication-Authentication- Returns:
trueif the access is allowed else returnsfalse
-
implies
Checks if the specifiedClusterPermission's actions are implied by thisClusterPermission- Parameters:
otherClusterPermission-ClusterPermission- Returns:
trueif the specified cluster permissions actions are implied by this cluster permission else returnsfalse
-
privileges
-
builder
-