Uses of Interface
org.keycloak.authorization.model.Resource
Packages that use Resource
Package
Description
Provides the domain model and any other type related with it
Provides classes and a SPI to plug different metadata storage implementations.
-
Uses of Resource in org.keycloak.authorization.admin
Method parameters in org.keycloak.authorization.admin with type arguments of type ResourceModifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
ResourceSetService.find
(String id, String name, String uri, String owner, String type, String scope, Boolean matchingUri, Boolean exactName, Boolean deep, Integer firstResult, Integer maxResult, BiFunction<Resource, Boolean, ?> toRepresentation) jakarta.ws.rs.core.Response
ResourceSetService.findById
(String id, Function<Resource, ? extends ResourceRepresentation> toRepresentation) -
Uses of Resource in org.keycloak.authorization.jpa.store
Classes in org.keycloak.authorization.jpa.store that implement ResourceMethods in org.keycloak.authorization.jpa.store that return ResourceModifier and TypeMethodDescriptionJPAResourceStore.create
(ResourceServer resourceServer, String id, String name, String owner) JPAResourceStore.findById
(ResourceServer resourceServer, String id) JPAResourceStore.findByName
(ResourceServer resourceServer, String name, String ownerId) PermissionTicketAdapter.getResource()
Methods in org.keycloak.authorization.jpa.store that return types with arguments of type ResourceModifier and TypeMethodDescriptionJPAResourceStore.find
(ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) JPAResourceStore.findByResourceServer
(ResourceServer resourceServer) JPAPermissionTicketStore.findGrantedOwnerResources
(String owner, Integer firstResult, Integer maxResults) JPAPermissionTicketStore.findGrantedResources
(String requester, String name, Integer first, Integer max) PolicyAdapter.getResources()
Methods in org.keycloak.authorization.jpa.store with parameters of type ResourceModifier and TypeMethodDescriptionvoid
PolicyAdapter.addResource
(Resource resource) JPAPermissionTicketStore.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) JPAPermissionTicketStore.findByResource
(ResourceServer resourceServer, Resource resource) void
JPAPolicyStore.findByResource
(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) void
JPAPolicyStore.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) void
PolicyAdapter.removeResource
(Resource resource) static ResourceEntity
Method parameters in org.keycloak.authorization.jpa.store with type arguments of type ResourceModifier and TypeMethodDescriptionvoid
JPAResourceStore.findByOwner
(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) void
JPAResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
JPAResourceStore.findByType
(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) void
JPAResourceStore.findByType
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) void
JPAResourceStore.findByTypeInstance
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) -
Uses of Resource in org.keycloak.authorization.model
Methods in org.keycloak.authorization.model that return ResourceModifier and TypeMethodDescriptionPermissionTicket.getResource()
Returns theResource
associated with this instanceMethods in org.keycloak.authorization.model that return types with arguments of type ResourceModifier and TypeMethodDescriptionPolicy.getResources()
Returns theResource
instances where this policy applies.Methods in org.keycloak.authorization.model with parameters of type ResourceModifier and TypeMethodDescriptionvoid
Policy.addResource
(Resource resource) void
Policy.removeResource
(Resource resource) -
Uses of Resource in org.keycloak.authorization.permission
Methods in org.keycloak.authorization.permission that return ResourceModifier and TypeMethodDescriptionResourcePermission.getResource()
Returns the resource to which this permission applies.Methods in org.keycloak.authorization.permission with parameters of type ResourceModifier and TypeMethodDescriptionstatic ResourcePermission
Permissions.createResourcePermissions
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request) static ResourcePermission
Permissions.permission
(ResourceServer server, Resource resource, Scope scope) Permissions.resolveScopes
(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization) Constructors in org.keycloak.authorization.permission with parameters of type ResourceModifierConstructorDescriptionResourcePermission
(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer) ResourcePermission
(Resource resource, Collection<Scope> scopes, ResourceServer resourceServer, Map<String, ? extends Collection<String>> claims) ResourcePermission
(Resource resource, ResourceServer resourceServer, Map<String, ? extends Collection<String>> claims) -
Uses of Resource in org.keycloak.authorization.protection.resource
Constructors in org.keycloak.authorization.protection.resource with parameters of type Resource -
Uses of Resource in org.keycloak.authorization.store
Methods in org.keycloak.authorization.store that return ResourceModifier and TypeMethodDescriptiondefault Resource
ResourceStore.create
(ResourceServer resourceServer, String name, String owner) Creates aResource
instance backed by this persistent storage implementation.ResourceStore.create
(ResourceServer resourceServer, String id, String name, String owner) Creates aResource
instance backed by this persistent storage implementation.ResourceStore.findById
(ResourceServer resourceServer, String id) Returns aResource
instance based on its identifier.default Resource
ResourceStore.findByName
(ResourceServer resourceServer, String name) Find aResource
by its name where the owner is the resource server itself.ResourceStore.findByName
(ResourceServer resourceServer, String name, String ownerId) Find aResource
by its name where the owner is the givenownerId
.Methods in org.keycloak.authorization.store that return types with arguments of type ResourceModifier and TypeMethodDescriptionResourceStore.find
(ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) Finds allResource
instances associated with a given resource server.ResourceStore.findByOwner
(ResourceServer resourceServer, String ownerId) Finds allResource
instances with the givenownerId
.ResourceStore.findByResourceServer
(ResourceServer resourceServer) Finds allResource
instances associated with a given resource server.ResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes) Finds allResource
associated with a given scope.ResourceStore.findByType
(ResourceServer resourceServer, String type) Finds allResource
associated with theResourceServer
with the given type.PermissionTicketStore.findGrantedOwnerResources
(String owner, Integer firstResult, Integer maxResults) Returns a list ofResource
granted by the owner to other usersPermissionTicketStore.findGrantedResources
(String requester, String name, Integer firstResult, Integer maxResults) Returns a list ofResource
granted to the givenrequester
Methods in org.keycloak.authorization.store with parameters of type ResourceModifier and TypeMethodDescriptionPermissionTicketStore.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) Creates a newPermissionTicket
instance.PermissionTicketStore.findByResource
(ResourceServer resourceServer, Resource resource) Returns a list ofPermissionTicket
associated with theresource
.PolicyStore.findByResource
(ResourceServer resourceServer, Resource resource) void
PolicyStore.findByResource
(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) Searches for all policies associated with theResource
and passes the result to theconsumer
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.Method parameters in org.keycloak.authorization.store with type arguments of type ResourceModifier and TypeMethodDescriptionvoid
ResourceStore.findByOwner
(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) Effectively the same method asResourceStore.findByOwner(ResourceServer, String)
, however in the end theconsumer
is fed with the result.void
ResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
ResourceStore.findByType
(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) Finds allResource
with the given type.void
ResourceStore.findByType
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) Finds allResource
fromResourceServer
with the given type.void
ResourceStore.findByTypeInstance
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) Finds allResource
by type where client represented by theresourceServer
is not the owner -
Uses of Resource in org.keycloak.models.cache.infinispan.authorization
Classes in org.keycloak.models.cache.infinispan.authorization that implement ResourceFields in org.keycloak.models.cache.infinispan.authorization declared as ResourceFields in org.keycloak.models.cache.infinispan.authorization with type parameters of type ResourceMethods in org.keycloak.models.cache.infinispan.authorization that return ResourceModifier and TypeMethodDescriptionStoreFactoryCacheSession.ResourceCache.create
(ResourceServer resourceServer, String id, String name, String owner) StoreFactoryCacheSession.ResourceCache.findById
(ResourceServer resourceServer, String id) StoreFactoryCacheSession.ResourceCache.findByName
(ResourceServer resourceServer, String name, String ownerId) ResourceAdapter.getDelegateForUpdate()
PermissionTicketAdapter.getResource()
Methods in org.keycloak.models.cache.infinispan.authorization that return types with arguments of type ResourceModifier and TypeMethodDescriptionStoreFactoryCacheSession.ResourceCache.find
(ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) StoreFactoryCacheSession.ResourceCache.findByOwner
(ResourceServer resourceServer, String ownerId) StoreFactoryCacheSession.ResourceCache.findByResourceServer
(ResourceServer resourceServer) StoreFactoryCacheSession.ResourceCache.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes) StoreFactoryCacheSession.ResourceCache.findByType
(ResourceServer resourceServer, String type) StoreFactoryCacheSession.PermissionTicketCache.findGrantedOwnerResources
(String owner, Integer firstResult, Integer maxResults) StoreFactoryCacheSession.PermissionTicketCache.findGrantedResources
(String requester, String name, Integer first, Integer max) PolicyAdapter.getResources()
Methods in org.keycloak.models.cache.infinispan.authorization with parameters of type ResourceModifier and TypeMethodDescriptionvoid
PolicyAdapter.addResource
(Resource resource) StoreFactoryCacheSession.PermissionTicketCache.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) StoreFactoryCacheSession.PermissionTicketCache.findByResource
(ResourceServer resourceServer, Resource resource) StoreFactoryCacheSession.PolicyCache.findByResource
(ResourceServer resourceServer, Resource resource) void
StoreFactoryCacheSession.PolicyCache.findByResource
(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) StoreFactoryCacheSession.PolicyCache.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes) void
StoreFactoryCacheSession.PolicyCache.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) void
PolicyAdapter.removeResource
(Resource resource) Method parameters in org.keycloak.models.cache.infinispan.authorization with type arguments of type ResourceModifier and TypeMethodDescriptionvoid
StoreFactoryCacheSession.ResourceCache.findByOwner
(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) void
StoreFactoryCacheSession.ResourceCache.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
StoreFactoryCacheSession.ResourceCache.findByType
(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) void
StoreFactoryCacheSession.ResourceCache.findByType
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) void
StoreFactoryCacheSession.ResourceCache.findByTypeInstance
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) -
Uses of Resource in org.keycloak.models.cache.infinispan.authorization.entities
Method parameters in org.keycloak.models.cache.infinispan.authorization.entities with type arguments of type ResourceModifier and TypeMethodDescriptionCachedResource.getAttributes
(Supplier<Resource> source) CachedResource.getScopesIds
(Supplier<Resource> source) Constructors in org.keycloak.models.cache.infinispan.authorization.entities with parameters of type Resource -
Uses of Resource in org.keycloak.models.utils
Methods in org.keycloak.models.utils that return ResourceModifier and TypeMethodDescriptionstatic Resource
RepresentationToModel.toModel
(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization) Methods in org.keycloak.models.utils with parameters of type ResourceModifier and TypeMethodDescriptionstatic ResourceRepresentation
ModelToRepresentation.toRepresentation
(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization) static ResourceRepresentation
ModelToRepresentation.toRepresentation
(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization, Boolean deep) -
Uses of Resource in org.keycloak.services.resources.admin.permissions
Methods in org.keycloak.services.resources.admin.permissions that return ResourceModifier and TypeMethodDescriptionClientPermissionManagement.resource
(ClientModel client) GroupPermissionManagement.resource
(GroupModel group) IdentityProviderPermissionManagement.resource
(IdentityProviderModel idp) UserPermissionManagement.resource()