Uses of Interface
org.keycloak.authorization.model.Resource
Packages that use Resource
Package
Description
Fine-grained Authorization SPI.
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
Methods in org.keycloak.authorization that return ResourceModifier and TypeMethodDescriptionAdminPermissionsSchema.getOrCreateResource(KeycloakSession session, ResourceServer resourceServer, String policyType, String resourceType, String id) AdminPermissionsSchema.getResourceTypeResource(KeycloakSession session, ResourceServer resourceServer, String resourceType) Methods in org.keycloak.authorization with parameters of type ResourceModifier and TypeMethodDescriptionAdminPermissionsSchema.getResourceName(KeycloakSession session, Policy policy, Resource resource) voidAdminPermissionsSchema.removeResource(Resource resource, Policy policy, AuthorizationProvider authorization) Constructor parameters in org.keycloak.authorization with type arguments of type ResourceModifierConstructorDescriptionFGAPEvaluation(Evaluation evaluation, Map<Scope, Set<Resource>> scopesGrantedByResource) -
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.ResponseResourceSetService.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.ResponseResourceSetService.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 TypeMethodDescriptionvoidPolicyAdapter.addResource(Resource resource) JPAPermissionTicketStore.create(ResourceServer resourceServer, Resource resource, Scope scope, String requester) JPAPermissionTicketStore.findByResource(ResourceServer resourceServer, Resource resource) voidJPAPolicyStore.findByResource(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) voidJPAPolicyStore.findByScopes(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) voidPolicyAdapter.removeResource(Resource resource) static ResourceEntityMethod parameters in org.keycloak.authorization.jpa.store with type arguments of type ResourceModifier and TypeMethodDescriptionvoidJPAResourceStore.findByOwner(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) voidJPAResourceStore.findByScopes(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) voidJPAResourceStore.findByType(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) voidJPAResourceStore.findByType(ResourceServer resourceServer, String type, Consumer<Resource> consumer) voidJPAResourceStore.findByTypeInstance(ResourceServer resourceServer, String type, Consumer<Resource> consumer) -
Uses of Resource in org.keycloak.authorization.model
Classes in org.keycloak.authorization.model that implement ResourceMethods in org.keycloak.authorization.model that return ResourceModifier and TypeMethodDescriptionPermissionTicket.getResource()Returns theResourceassociated with this instanceMethods in org.keycloak.authorization.model that return types with arguments of type ResourceModifier and TypeMethodDescriptionPolicy.getResources()Returns theResourceinstances where this policy applies.Methods in org.keycloak.authorization.model with parameters of type ResourceModifier and TypeMethodDescriptionvoidPolicy.addResource(Resource resource) voidPolicy.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 ResourcePermissionPermissions.createResourcePermissions(String resourceType, Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request) static ResourcePermissionPermissions.createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request) static ResourcePermissionPermissions.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(String resourceType, Resource resource, Collection<Scope> scopes, ResourceServer resourceServer) ResourcePermission(String resourceType, Resource resource, Collection<Scope> scopes, ResourceServer resourceServer, Map<String, ? extends Collection<String>> claims) ResourcePermission(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 ResourceResourceStore.create(ResourceServer resourceServer, String name, String owner) Creates aResourceinstance backed by this persistent storage implementation.ResourceStore.create(ResourceServer resourceServer, String id, String name, String owner) Creates aResourceinstance backed by this persistent storage implementation.ResourceStore.findById(ResourceServer resourceServer, String id) Returns aResourceinstance based on its identifier.default ResourceResourceStore.findByName(ResourceServer resourceServer, String name) Find aResourceby its name where the owner is the resource server itself.ResourceStore.findByName(ResourceServer resourceServer, String name, String ownerId) Find aResourceby 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 allResourceinstances associated with a given resource server.ResourceStore.findByOwner(ResourceServer resourceServer, String ownerId) Finds allResourceinstances with the givenownerId.ResourceStore.findByResourceServer(ResourceServer resourceServer) Finds allResourceinstances associated with a given resource server.ResourceStore.findByScopes(ResourceServer resourceServer, Set<Scope> scopes) Finds allResourceassociated with a given scope.ResourceStore.findByType(ResourceServer resourceServer, String type) Finds allResourceassociated with theResourceServerwith the given type.PermissionTicketStore.findGrantedOwnerResources(String owner, Integer firstResult, Integer maxResults) Returns a list ofResourcegranted by the owner to other usersPermissionTicketStore.findGrantedResources(String requester, String name, Integer firstResult, Integer maxResults) Returns a list ofResourcegranted to the givenrequesterMethods in org.keycloak.authorization.store with parameters of type ResourceModifier and TypeMethodDescriptionPermissionTicketStore.create(ResourceServer resourceServer, Resource resource, Scope scope, String requester) Creates a newPermissionTicketinstance.PermissionTicketStore.findByResource(ResourceServer resourceServer, Resource resource) Returns a list ofPermissionTicketassociated with theresource.PolicyStore.findByResource(ResourceServer resourceServer, Resource resource) voidPolicyStore.findByResource(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) Searches for all policies associated with theResourceand passes the result to theconsumerPolicyStore.findByScopes(ResourceServer resourceServer, Resource resource, List<Scope> scopes) voidPolicyStore.findByScopes(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) Effectively the same method asPolicyStore.findByScopes(ResourceServer, Resource, List), however in the end theconsumeris fed with the result.Method parameters in org.keycloak.authorization.store with type arguments of type ResourceModifier and TypeMethodDescriptionvoidResourceStore.findByOwner(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) Effectively the same method asResourceStore.findByOwner(ResourceServer, String), however in the end theconsumeris fed with the result.voidResourceStore.findByScopes(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) voidResourceStore.findByType(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) Finds allResourcewith the given type.voidResourceStore.findByType(ResourceServer resourceServer, String type, Consumer<Resource> consumer) Finds allResourcefromResourceServerwith the given type.voidResourceStore.findByTypeInstance(ResourceServer resourceServer, String type, Consumer<Resource> consumer) Finds allResourceby type where client represented by theresourceServeris 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 TypeMethodDescriptionvoidPolicyAdapter.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) voidStoreFactoryCacheSession.PolicyCache.findByResource(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) StoreFactoryCacheSession.PolicyCache.findByScopes(ResourceServer resourceServer, Resource resource, List<Scope> scopes) voidStoreFactoryCacheSession.PolicyCache.findByScopes(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) voidPolicyAdapter.removeResource(Resource resource) Method parameters in org.keycloak.models.cache.infinispan.authorization with type arguments of type ResourceModifier and TypeMethodDescriptionvoidStoreFactoryCacheSession.ResourceCache.findByOwner(ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) voidStoreFactoryCacheSession.ResourceCache.findByScopes(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) voidStoreFactoryCacheSession.ResourceCache.findByType(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) voidStoreFactoryCacheSession.ResourceCache.findByType(ResourceServer resourceServer, String type, Consumer<Resource> consumer) voidStoreFactoryCacheSession.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(KeycloakSession session, Supplier<Resource> source) CachedResource.getScopesIds(KeycloakSession session, Supplier<Resource> source) CachedResource.getUris(KeycloakSession session, 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 ResourceRepresentationToModel.toModel(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization) Methods in org.keycloak.models.utils with parameters of type ResourceModifier and TypeMethodDescriptionstatic ResourceRepresentationModelToRepresentation.toRepresentation(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization) static ResourceRepresentationModelToRepresentation.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()