Class Permissions
- java.lang.Object
-
- org.keycloak.authorization.permission.Permissions
-
public final class Permissions extends Object
- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description Permissions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
all(ResourceServer resourceServer, Identity identity, AuthorizationProvider authorization, AuthorizationRequest request, Consumer<ResourcePermission> evaluator)
Returns a list of permissions for all resources and scopes that belong to the givenresourceServer
andidentity
.static ResourcePermission
createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request)
static ResourcePermission
permission(ResourceServer server, Resource resource, Scope scope)
static Set<Scope>
resolveScopes(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization)
-
-
-
Method Detail
-
permission
public static ResourcePermission permission(ResourceServer server, Resource resource, Scope scope)
-
all
public static void all(ResourceServer resourceServer, Identity identity, AuthorizationProvider authorization, AuthorizationRequest request, Consumer<ResourcePermission> evaluator)
Returns a list of permissions for all resources and scopes that belong to the givenresourceServer
andidentity
. TODO: review once we support caches- Parameters:
resourceServer
-identity
-authorization
-
-
createResourcePermissions
public static ResourcePermission createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request)
-
resolveScopes
public static Set<Scope> resolveScopes(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization)
-
-