Package org.infinispan.security
Interface RolePermissionMapper
- All Known Subinterfaces:
MutableRolePermissionMapper
- All Known Implementing Classes:
ClusterPermissionMapper
public interface RolePermissionMapper
Maps roles to permissions
- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
default void
setContext
(AuthorizationMapperContext context) Sets the context for thisRolePermissionMapper
-
Method Details
-
setContext
Sets the context for thisRolePermissionMapper
- Parameters:
context
-
-
getRole
- Parameters:
name
- the name of the role- Returns:
- the
Role
-
getAllRoles
- Returns:
- all roles handled by this RolePermissionMapper
-
hasRole
- Parameters:
name
-- Returns:
- whether this permission mapper contains the named role
-