Uses of Interface
org.keycloak.authorization.model.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
Modifier 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
Modifier 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()
Modifier 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()
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionPermissionTicket.getResource()
Returns theResource
associated with this instanceModifier and TypeMethodDescriptionPolicy.getResources()
Returns theResource
instances where this policy applies.Modifier and TypeMethodDescriptionvoid
Policy.addResource
(Resource resource) void
Policy.removeResource
(Resource resource) -
Uses of Resource in org.keycloak.authorization.permission
Modifier and TypeMethodDescriptionResourcePermission.getResource()
Returns the resource to which this permission applies.Modifier 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) ModifierConstructorDescriptionResourcePermission
(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
-
Uses of Resource in org.keycloak.authorization.store
Modifier 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
.Modifier 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
Modifier 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.Modifier 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
Modifier 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()
Modifier 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()
Modifier 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) Modifier 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
Modifier and TypeMethodDescriptionCachedResource.getAttributes
(Supplier<Resource> source) CachedResource.getScopesIds
(Supplier<Resource> source) -
Uses of Resource in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic Resource
RepresentationToModel.toModel
(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization) Modifier 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
Modifier and TypeMethodDescriptionClientPermissionManagement.resource
(ClientModel client) GroupPermissionManagement.resource
(GroupModel group) IdentityProviderPermissionManagement.resource
(IdentityProviderModel idp) UserPermissionManagement.resource()