Package org.keycloak.services
Class DefaultPermissions
java.lang.Object
org.keycloak.services.DefaultPermissions
- All Implemented Interfaces:
Permissions
-
Constructor Summary
Constructors -
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 realmResourceType, String scope) Returnstrueif the current user has permissions to perform an action on a realm resource type with the given scope
-
Constructor Details
-
DefaultPermissions
-
-
Method Details
-
hasPermission
Description copied from interface:PermissionsReturnstrueif the current user has permissions to perform an action on realm resources with the givenresourceTypeand with the givenscope.- Specified by:
hasPermissionin interfacePermissions- 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
Description copied from interface:PermissionsReturnstrueif the current user has permissions to perform an action on a realm resource type with the given scope- Specified by:
hasPermissionin interfacePermissionsrealmResourceType- 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
-