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
(RealmModel realm, ResourceServer resourceServer, String id) JPAResourceStore.findByName
(ResourceServer resourceServer, String name, String ownerId) PermissionTicketAdapter.getResource()
Modifier and TypeMethodDescriptionJPAResourceStore.find
(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) JPAResourceStore.findByResourceServer
(ResourceServer resourceServer) JPAPermissionTicketStore.findGrantedOwnerResources
(RealmModel realm, String owner, Integer firstResult, Integer maxResults) JPAPermissionTicketStore.findGrantedResources
(RealmModel realm, 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
(RealmModel realm, 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 TypeFieldDescriptionstatic final SearchableModelField<Resource>
Resource.SearchableFields.ID
static final SearchableModelField<Resource>
Resource.SearchableFields.NAME
static final SearchableModelField<Resource>
Resource.SearchableFields.OWNER
static final SearchableModelField<Resource>
Resource.SearchableFields.OWNER_MANAGED_ACCESS
static final SearchableModelField<Resource>
Resource.SearchableFields.REALM_ID
static final SearchableModelField<Resource>
Resource.SearchableFields.RESOURCE_SERVER_ID
static final SearchableModelField<Resource>
Resource.SearchableFields.SCOPE_ID
static final SearchableModelField<Resource>
Resource.SearchableFields.TYPE
static final SearchableModelField<Resource>
Resource.SearchableFields.URI
Modifier and TypeMethodDescriptionPermissionTicket.getResource()
Returns theResource
associated with this instanceModifier and TypeMethodDescriptionPolicy.getResources()
Returns theResource
instances where this policy applies.Resource.FilterOption.getSearchableModelField()
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
(RealmModel realm, 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
(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) Finds allResource
instances associated with a given resource server.ResourceStore.findByOwner
(RealmModel realm, 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
fromResourceServer
with the given type.PermissionTicketStore.findGrantedOwnerResources
(RealmModel realm, String owner, Integer firstResult, Integer maxResults) Returns a list ofResource
granted by the owner to other usersPermissionTicketStore.findGrantedResources
(RealmModel realm, 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
(RealmModel realm, ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) 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
(RealmModel realm, ResourceServer resourceServer, String id) StoreFactoryCacheSession.ResourceCache.findByName
(ResourceServer resourceServer, String name, String ownerId) ResourceAdapter.getDelegateForUpdate()
PermissionTicketAdapter.getResource()
Modifier and TypeMethodDescriptionStoreFactoryCacheSession.ResourceCache.find
(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) StoreFactoryCacheSession.ResourceCache.findByOwner
(RealmModel realm, 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
(RealmModel realm, String owner, Integer firstResult, Integer maxResults) StoreFactoryCacheSession.PermissionTicketCache.findGrantedResources
(RealmModel realm, 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
(RealmModel realm, 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.map.authorization
Modifier and TypeMethodDescriptionMapResourceStore.create
(ResourceServer resourceServer, String id, String name, String owner) MapResourceStore.findById
(RealmModel realm, ResourceServer resourceServer, String id) MapResourceStore.findByName
(ResourceServer resourceServer, String name, String ownerId) Modifier and TypeMethodDescriptionMapResourceStore.find
(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) MapResourceStore.findByResourceServer
(ResourceServer resourceServer) MapPermissionTicketStore.findGrantedOwnerResources
(RealmModel realm, String owner, Integer firstResult, Integer maxResults) MapPermissionTicketStore.findGrantedResources
(RealmModel realm, String requester, String name, Integer first, Integer max) Modifier and TypeMethodDescriptionMapPermissionTicketStore.create
(ResourceServer resourceServer, Resource resource, Scope scope, String requester) MapPermissionTicketStore.findByResource
(ResourceServer resourceServer, Resource resource) void
MapPolicyStore.findByResource
(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer) void
MapPolicyStore.findByScopes
(ResourceServer resourceServer, Resource resource, List<Scope> scopes, Consumer<Policy> consumer) Modifier and TypeMethodDescriptionvoid
MapResourceStore.findByOwner
(RealmModel realm, ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) void
MapResourceStore.findByScopes
(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer) void
MapResourceStore.findByType
(ResourceServer resourceServer, String type, String owner, Consumer<Resource> consumer) void
MapResourceStore.findByType
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) void
MapResourceStore.findByTypeInstance
(ResourceServer resourceServer, String type, Consumer<Resource> consumer) ModifierConstructorDescriptionMapResourceStore
(MapStorage<MapResourceEntity, Resource> resourceStore, AuthorizationProvider provider) -
Uses of Resource in org.keycloak.models.map.authorization.adapter
Modifier and TypeMethodDescriptionvoid
MapPolicyAdapter.addResource
(Resource resource) void
MapPolicyAdapter.removeResource
(Resource resource) -
Uses of Resource in org.keycloak.models.map.storage.chm
Modifier and TypeFieldDescriptionstatic final Map<SearchableModelField<Resource>,
MapModelCriteriaBuilder.UpdatePredicatesFunc<Object, MapResourceEntity, Resource>> MapFieldPredicates.AUTHZ_RESOURCE_PREDICATES
static final Map<SearchableModelField<Resource>,
MapModelCriteriaBuilder.UpdatePredicatesFunc<Object, MapResourceEntity, Resource>> MapFieldPredicates.AUTHZ_RESOURCE_PREDICATES
-
Uses of Resource in org.keycloak.models.map.storage.jpa.authorization.resource
Modifier and TypeMethodDescriptionJpaResourceModelCriteriaBuilder.compare
(SearchableModelField<? super Resource> modelField, ModelCriteriaBuilder.Operator op, Object... value) -
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()