Class Permissions
java.lang.Object
org.keycloak.authorization.permission.Permissions
- Author:
- Pedro Igor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) resolveScopes
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization)
-
Constructor Details
-
Permissions
public Permissions()
-
-
Method Details
-
permission
-
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)
-