Class DefaultPermissions

java.lang.Object
org.keycloak.services.DefaultPermissions
All Implemented Interfaces:
Permissions

public class DefaultPermissions extends Object implements Permissions
  • Constructor Details

  • Method Details

    • hasPermission

      public boolean hasPermission(String resourceType, String scope)
      Description copied from interface: Permissions
      Returns true if the current user has permissions to perform an action on realm resources with the given resourceType and with the given scope.
      Specified by:
      hasPermission in interface Permissions
      Parameters:
      resourceType - the realm resource type
      scope - the scope
      Returns:
      true if the current user has permissions to perform an action on a realm resource type with the given scope, false otherwise
    • hasPermission

      public boolean hasPermission(Model model, String realmResourceType, String scope)
      Description copied from interface: Permissions
      Returns true if the current user has permissions to perform an action on a realm resource type with the given scope
      Specified by:
      hasPermission in interface Permissions
      realmResourceType - the realm resource type
      scope - the scope
      Returns:
      true if the current user has permissions to perform an action on a realm resource type with the given scope, false otherwise