Module org.elasticsearch.xcore
Interface NamedClusterPrivilege
- All Superinterfaces:
ClusterPrivilege
- All Known Implementing Classes:
ActionClusterPrivilege,ManageOwnApiKeyClusterPrivilege
A
ClusterPrivilege that has a name. The named cluster privileges can be referred simply by name within a
RoleDescriptor.getClusterPrivileges().-
Method Summary
Modifier and TypeMethodDescriptionname()Returns a permission that represents this privilege only.Methods inherited from interface org.elasticsearch.xpack.core.security.authz.privilege.ClusterPrivilege
buildPermission
-
Method Details
-
name
String name() -
permission
ClusterPermission permission()Returns a permission that represents this privilege only. When building a role (or role-like object) that has many privileges, it is more efficient to build a shared permission using theClusterPrivilege.buildPermission(ClusterPermission.Builder)method instead. This method is intended to allow callers to interrogate the runtime permissions specifically granted by this privilege. It is acceptable (and encouraged) for implementations of this method to cache (or precompute) theClusterPermissionand return the same object on each call.- See Also:
-