Uses of Interface
org.keycloak.authorization.model.Scope
Package
Description
Provides the domain model and any other type related with it
Provides classes related with the evaluation of policies.
Provides classes and a SPI to plug different metadata storage implementations.
-
Uses of Scope in org.keycloak.authorization.admin
Modifier and TypeMethodDescriptionprotected void
PolicyEvaluationService.EvaluationDecisionCollector.grantPermission
(AuthorizationProvider authorizationProvider, Set<Permission> permissions, ResourcePermission permission, Collection<Scope> grantedScopes, ResourceServer resourceServer, AuthorizationRequest request, Result result) -
Uses of Scope in org.keycloak.authorization.jpa.store
Modifier and TypeMethodDescriptionJPAScopeStore.create
(ResourceServer resourceServer, String name) JPAScopeStore.create
(ResourceServer resourceServer, String id, String name) JPAScopeStore.findById
(ResourceServer resourceServer, String id) JPAScopeStore.findByName
(ResourceServer resourceServer, String name) PermissionTicketAdapter.getScope()
Modifier and TypeMethodDescriptionJPAScopeStore.findByResourceServer
(ResourceServer resourceServer) JPAScopeStore.findByResourceServer
(ResourceServer resourceServer, Map<Scope.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) PolicyAdapter.getScopes()
ResourceAdapter.getScopes()
Modifier and TypeMethodDescriptionvoid
JPAPermissionTicketStore.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) JPAPermissionTicketStore.findByScope
(ResourceServer resourceServer, Scope scope) void
PolicyAdapter.removeScope
(Scope scope) static ScopeEntity
Modifier and TypeMethodDescriptionJPAPolicyStore.findByScopes
(ResourceServer resourceServer, List<Scope> scopes) void
JPAPolicyStore.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) void
JPAResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
ResourceAdapter.updateScopes
(Set<Scope> toUpdate) -
Uses of Scope in org.keycloak.authorization.model
Modifier and TypeMethodDescriptionPermissionTicket.getScope()
Returns theScope
associated with this instanceModifier and TypeMethodDescriptionPolicy.getScopes()
Returns theScope
instances where this policy applies.Resource.getScopes()
Modifier and TypeMethodDescriptionvoid
Resource.updateScopes
(Set<Scope> scopes) Update the set of scopes associated with this resource. -
Uses of Scope in org.keycloak.authorization.permission
Modifier and TypeMethodDescriptionResourcePermission.getScopes()
Returns a list of permitted scopes associated with the resourcePermissions.resolveScopes
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization) Modifier and TypeMethodDescriptionvoid
static ResourcePermission
Permissions.permission
(ResourceServer server, Resource resource, Scope scope) Modifier and TypeMethodDescriptionstatic ResourcePermission
Permissions.createResourcePermissions
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request) Permissions.resolveScopes
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization) ModifierConstructorDescriptionResourcePermission
(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer) ResourcePermission
(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer, Map<String, ? extends Collection<String>> claims) -
Uses of Scope in org.keycloak.authorization.policy.evaluation
Modifier and TypeMethodDescriptionprotected void
DecisionPermissionCollector.grantPermission
(AuthorizationProvider authorizationProvider, Set<Permission> permissions, ResourcePermission permission, Collection<Scope> grantedScopes, ResourceServer resourceServer, AuthorizationRequest request, Result result) -
Uses of Scope in org.keycloak.authorization.store
Modifier and TypeMethodDescriptiondefault Scope
ScopeStore.create
(ResourceServer resourceServer, String name) Creates a newScope
instance.ScopeStore.create
(ResourceServer resourceServer, String id, String name) Creates a newScope
instance.ScopeStore.findById
(ResourceServer resourceServer, String id) Returns aScope
with the givenid
ScopeStore.findByName
(ResourceServer resourceServer, String name) Returns aScope
with the givenname
Modifier and TypeMethodDescriptionScopeStore.findByResourceServer
(ResourceServer resourceServer) Returns a list ofScope
associated with theResourceServer
.ScopeStore.findByResourceServer
(ResourceServer resourceServer, Map<Scope.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) Modifier and TypeMethodDescriptionPermissionTicketStore.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) Creates a newPermissionTicket
instance.PermissionTicketStore.findByScope
(ResourceServer resourceServer, Scope scope) Returns a list ofPermissionTicket
associated with thescope
.Modifier and TypeMethodDescriptionPolicyStore.findByScopes
(ResourceServer resourceServer, List<Scope> scopes) PolicyStore.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes) void
PolicyStore.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) Effectively the same method asPolicyStore.findByScopes(ResourceServer, Resource, List)
, however in the end theconsumer
is fed with the result.ResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes) Finds allResource
associated with a given scope.void
ResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) -
Uses of Scope in org.keycloak.models.cache.infinispan.authorization
Modifier and TypeMethodDescriptionStoreFactoryCacheSession.ScopeCache.create
(ResourceServer resourceServer, String name) StoreFactoryCacheSession.ScopeCache.create
(ResourceServer resourceServer, String id, String name) StoreFactoryCacheSession.ScopeCache.findById
(ResourceServer resourceServer, String id) StoreFactoryCacheSession.ScopeCache.findByName
(ResourceServer resourceServer, String name) ScopeAdapter.getDelegateForUpdate()
PermissionTicketAdapter.getScope()
Modifier and TypeMethodDescriptionStoreFactoryCacheSession.ScopeCache.findByResourceServer
(ResourceServer resourceServer) StoreFactoryCacheSession.ScopeCache.findByResourceServer
(ResourceServer resourceServer, Map<Scope.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) PolicyAdapter.getScopes()
ResourceAdapter.getScopes()
Modifier and TypeMethodDescriptionvoid
StoreFactoryCacheSession.PermissionTicketCache.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) StoreFactoryCacheSession.PermissionTicketCache.findByScope
(ResourceServer resourceServer, Scope scope) void
PolicyAdapter.removeScope
(Scope scope) Modifier and TypeMethodDescriptionStoreFactoryCacheSession.PolicyCache.findByScopes
(ResourceServer resourceServer, List<Scope> scopes) StoreFactoryCacheSession.PolicyCache.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes) void
StoreFactoryCacheSession.PolicyCache.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) StoreFactoryCacheSession.ResourceCache.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes) void
StoreFactoryCacheSession.ResourceCache.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
ResourceAdapter.updateScopes
(Set<Scope> scopes) -
Uses of Scope in org.keycloak.models.cache.infinispan.authorization.entities
-
Uses of Scope in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic Scope
RepresentationToModel.toModel
(ScopeRepresentation scope, ResourceServer resourceServer, AuthorizationProvider authorization) static Scope
RepresentationToModel.toModel
(ScopeRepresentation scope, ResourceServer resourceServer, AuthorizationProvider authorization, boolean updateIfExists) Modifier and TypeMethodDescriptionstatic ScopeRepresentation
ModelToRepresentation.toRepresentation
(Scope model)