Module org.elasticsearch.xcore
Class ManageOwnApiKeyClusterPrivilege
java.lang.Object
org.elasticsearch.xpack.core.security.authz.privilege.ManageOwnApiKeyClusterPrivilege
- All Implemented Interfaces:
ClusterPrivilege,NamedClusterPrivilege
Named cluster privilege for managing API keys owned by the current authenticated user.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuildPermission(ClusterPermission.Builder builder) UsesClusterPermission.Builderto add predicate that later can be used to build aClusterPermission.name()Returns a permission that represents this privilege only.
-
Field Details
-
INSTANCE
-
-
Method Details
-
name
- Specified by:
namein interfaceNamedClusterPrivilege
-
buildPermission
Description copied from interface:ClusterPrivilegeUsesClusterPermission.Builderto add predicate that later can be used to build aClusterPermission.- Specified by:
buildPermissionin interfaceClusterPrivilege- Parameters:
builder-ClusterPermission.Builder- Returns:
- an instance of
ClusterPermission.Builder
-
permission
Description copied from interface:NamedClusterPrivilegeReturns 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.- Specified by:
permissionin interfaceNamedClusterPrivilege- See Also:
-