Package org.keycloak.models
Interface Permissions
- All Known Implementing Classes:
DefaultPermissions
public interface Permissions
A permissions evaluator that can be used to check if the current user has permissions to perform an action on realm resources.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(String resourceType, String scope) Returnstrueif the current user has permissions to perform an action on realm resources with the givenresourceTypeand with the givenscope.booleanhasPermission(Model model, String resourceType, String scope) Returnstrueif the current user has permissions to perform an action on a realm resource type with the given scope
-
Method Details
-
hasPermission
Returnstrueif the current user has permissions to perform an action on realm resources with the givenresourceTypeand with the givenscope.- Parameters:
resourceType- the realm resource typescope- the scope- Returns:
trueif the current user has permissions to perform an action on a realm resource type with the given scope,falseotherwise
-
hasPermission
Returnstrueif the current user has permissions to perform an action on a realm resource type with the given scope- Parameters:
resourceType- the realm resource typescope- the scope- Returns:
trueif the current user has permissions to perform an action on a realm resource type with the given scope,falseotherwise
-