Uses of Interface
org.keycloak.authorization.model.Resource
-
Packages that use Resource Package Description org.keycloak.authorization.admin org.keycloak.authorization.jpa.store org.keycloak.authorization.model Provides the domain model and any other type related with itorg.keycloak.authorization.permission org.keycloak.authorization.protection.resource org.keycloak.authorization.store Provides classes and a SPI to plug different metadata storage implementations.org.keycloak.forms.account.freemarker.model org.keycloak.models.cache.infinispan.authorization org.keycloak.models.cache.infinispan.authorization.entities org.keycloak.models.map.authorization org.keycloak.models.map.authorization.adapter org.keycloak.models.map.storage.chm org.keycloak.models.map.storage.jpa.authorization.resource org.keycloak.models.utils org.keycloak.services.resources.admin.permissions -
-
Uses of Resource in org.keycloak.authorization.admin
Method parameters in org.keycloak.authorization.admin with type arguments of type Resource Modifier and Type Method Description javax.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)
javax.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 Resource Modifier and Type Class Description class
ResourceAdapter
Methods in org.keycloak.authorization.jpa.store that return Resource Modifier and Type Method Description Resource
JPAResourceStore. create(ResourceServer resourceServer, String id, String name, String owner)
Resource
JPAResourceStore. findById(RealmModel realm, ResourceServer resourceServer, String id)
Resource
JPAResourceStore. findByName(ResourceServer resourceServer, String name, String ownerId)
Resource
PermissionTicketAdapter. getResource()
Methods in org.keycloak.authorization.jpa.store that return types with arguments of type Resource Modifier and Type Method Description List<Resource>
JPAResourceStore. find(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
List<Resource>
JPAResourceStore. findByResourceServer(ResourceServer resourceServer)
List<Resource>
JPAPermissionTicketStore. findGrantedOwnerResources(RealmModel realm, String owner, Integer firstResult, Integer maxResults)
List<Resource>
JPAPermissionTicketStore. findGrantedResources(RealmModel realm, String requester, String name, Integer first, Integer max)
Set<Resource>
PolicyAdapter. getResources()
Methods in org.keycloak.authorization.jpa.store with parameters of type Resource Modifier and Type Method Description void
PolicyAdapter. addResource(Resource resource)
PermissionTicket
JPAPermissionTicketStore. create(ResourceServer resourceServer, Resource resource, Scope scope, String requester)
List<PermissionTicket>
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
ResourceAdapter. toEntity(javax.persistence.EntityManager em, Resource resource)
Method parameters in org.keycloak.authorization.jpa.store with type arguments of type Resource Modifier and Type Method Description void
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
Fields in org.keycloak.authorization.model with type parameters of type Resource Modifier and Type Field Description static SearchableModelField<Resource>
Resource.SearchableFields. ID
static SearchableModelField<Resource>
Resource.SearchableFields. NAME
static SearchableModelField<Resource>
Resource.SearchableFields. OWNER
static SearchableModelField<Resource>
Resource.SearchableFields. OWNER_MANAGED_ACCESS
static SearchableModelField<Resource>
Resource.SearchableFields. REALM_ID
static SearchableModelField<Resource>
Resource.SearchableFields. RESOURCE_SERVER_ID
static SearchableModelField<Resource>
Resource.SearchableFields. SCOPE_ID
static SearchableModelField<Resource>
Resource.SearchableFields. TYPE
static SearchableModelField<Resource>
Resource.SearchableFields. URI
Methods in org.keycloak.authorization.model that return Resource Modifier and Type Method Description Resource
PermissionTicket. getResource()
Returns theResource
associated with this instanceMethods in org.keycloak.authorization.model that return types with arguments of type Resource Modifier and Type Method Description Set<Resource>
Policy. getResources()
Returns theResource
instances where this policy applies.SearchableModelField<Resource>
Resource.FilterOption. getSearchableModelField()
Methods in org.keycloak.authorization.model with parameters of type Resource Modifier and Type Method Description void
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 Resource Modifier and Type Method Description Resource
ResourcePermission. getResource()
Returns the resource to which this permission applies.Methods in org.keycloak.authorization.permission with parameters of type Resource Modifier and Type Method Description static ResourcePermission
Permissions. createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request)
static ResourcePermission
Permissions. permission(ResourceServer server, Resource resource, Scope scope)
static Set<Scope>
Permissions. resolveScopes(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization)
Constructors in org.keycloak.authorization.permission with parameters of type Resource Constructor Description 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 Constructor Description UmaResourceRepresentation(Resource resource)
-
Uses of Resource in org.keycloak.authorization.store
Methods in org.keycloak.authorization.store that return Resource Modifier and Type Method Description default Resource
ResourceStore. create(ResourceServer resourceServer, String name, String owner)
Creates aResource
instance backed by this persistent storage implementation.Resource
ResourceStore. create(ResourceServer resourceServer, String id, String name, String owner)
Creates aResource
instance backed by this persistent storage implementation.Resource
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.Resource
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 Resource Modifier and Type Method Description List<Resource>
ResourceStore. find(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
Finds allResource
instances associated with a given resource server.default List<Resource>
ResourceStore. findByOwner(RealmModel realm, ResourceServer resourceServer, String ownerId)
Finds allResource
instances with the givenownerId
.List<Resource>
ResourceStore. findByResourceServer(ResourceServer resourceServer)
Finds allResource
instances associated with a given resource server.default List<Resource>
ResourceStore. findByScopes(ResourceServer resourceServer, Set<Scope> scopes)
Finds allResource
associated with a given scope.default List<Resource>
ResourceStore. findByType(ResourceServer resourceServer, String type)
Finds allResource
fromResourceServer
with the given type.List<Resource>
PermissionTicketStore. findGrantedOwnerResources(RealmModel realm, String owner, Integer firstResult, Integer maxResults)
Returns a list ofResource
granted by the owner to other usersList<Resource>
PermissionTicketStore. findGrantedResources(RealmModel realm, 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 Resource Modifier and Type Method Description PermissionTicket
PermissionTicketStore. create(ResourceServer resourceServer, Resource resource, Scope scope, String requester)
Creates a newPermissionTicket
instance.List<PermissionTicket>
PermissionTicketStore. findByResource(ResourceServer resourceServer, Resource resource)
Returns a list ofPermissionTicket
associated with theresource
.default List<Policy>
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
default List<Policy>
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 Resource Modifier and Type Method Description void
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.forms.account.freemarker.model
Constructors in org.keycloak.forms.account.freemarker.model with parameters of type Resource Constructor Description ResourceBean(Resource resource)
-
Uses of Resource in org.keycloak.models.cache.infinispan.authorization
Classes in org.keycloak.models.cache.infinispan.authorization that implement Resource Modifier and Type Class Description class
ResourceAdapter
Fields in org.keycloak.models.cache.infinispan.authorization declared as Resource Modifier and Type Field Description protected Resource
ResourceAdapter. updated
Fields in org.keycloak.models.cache.infinispan.authorization with type parameters of type Resource Modifier and Type Field Description protected Set<Resource>
PolicyAdapter. resources
Methods in org.keycloak.models.cache.infinispan.authorization that return Resource Modifier and Type Method Description Resource
StoreFactoryCacheSession.ResourceCache. create(ResourceServer resourceServer, String id, String name, String owner)
Resource
StoreFactoryCacheSession.ResourceCache. findById(RealmModel realm, ResourceServer resourceServer, String id)
Resource
StoreFactoryCacheSession.ResourceCache. findByName(ResourceServer resourceServer, String name, String ownerId)
Resource
ResourceAdapter. getDelegateForUpdate()
Resource
PermissionTicketAdapter. getResource()
Methods in org.keycloak.models.cache.infinispan.authorization that return types with arguments of type Resource Modifier and Type Method Description List<Resource>
StoreFactoryCacheSession.ResourceCache. find(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
List<Resource>
StoreFactoryCacheSession.ResourceCache. findByOwner(RealmModel realm, ResourceServer resourceServer, String ownerId)
List<Resource>
StoreFactoryCacheSession.ResourceCache. findByResourceServer(ResourceServer resourceServer)
List<Resource>
StoreFactoryCacheSession.ResourceCache. findByScopes(ResourceServer resourceServer, Set<Scope> scopes)
List<Resource>
StoreFactoryCacheSession.ResourceCache. findByType(ResourceServer resourceServer, String type)
List<Resource>
StoreFactoryCacheSession.PermissionTicketCache. findGrantedOwnerResources(RealmModel realm, String owner, Integer firstResult, Integer maxResults)
List<Resource>
StoreFactoryCacheSession.PermissionTicketCache. findGrantedResources(RealmModel realm, String requester, String name, Integer first, Integer max)
Set<Resource>
PolicyAdapter. getResources()
Methods in org.keycloak.models.cache.infinispan.authorization with parameters of type Resource Modifier and Type Method Description void
PolicyAdapter. addResource(Resource resource)
PermissionTicket
StoreFactoryCacheSession.PermissionTicketCache. create(ResourceServer resourceServer, Resource resource, Scope scope, String requester)
List<PermissionTicket>
StoreFactoryCacheSession.PermissionTicketCache. findByResource(ResourceServer resourceServer, Resource resource)
List<Policy>
StoreFactoryCacheSession.PolicyCache. findByResource(ResourceServer resourceServer, Resource resource)
void
StoreFactoryCacheSession.PolicyCache. findByResource(ResourceServer resourceServer, Resource resource, Consumer<Policy> consumer)
List<Policy>
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 Resource Modifier and Type Method Description void
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
Method parameters in org.keycloak.models.cache.infinispan.authorization.entities with type arguments of type Resource Modifier and Type Method Description Map<String,List<String>>
CachedResource. getAttributes(Supplier<Resource> source)
Set<String>
CachedResource. getScopesIds(Supplier<Resource> source)
Set<String>
CachedResource. getUris(Supplier<Resource> source)
Constructors in org.keycloak.models.cache.infinispan.authorization.entities with parameters of type Resource Constructor Description CachedResource(Long revision, Resource resource)
-
Uses of Resource in org.keycloak.models.map.authorization
Methods in org.keycloak.models.map.authorization that return Resource Modifier and Type Method Description Resource
MapResourceStore. create(ResourceServer resourceServer, String id, String name, String owner)
Resource
MapResourceStore. findById(RealmModel realm, ResourceServer resourceServer, String id)
Resource
MapResourceStore. findByName(ResourceServer resourceServer, String name, String ownerId)
Methods in org.keycloak.models.map.authorization that return types with arguments of type Resource Modifier and Type Method Description List<Resource>
MapResourceStore. find(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)
List<Resource>
MapResourceStore. findByResourceServer(ResourceServer resourceServer)
List<Resource>
MapPermissionTicketStore. findGrantedOwnerResources(RealmModel realm, String owner, Integer firstResult, Integer maxResults)
List<Resource>
MapPermissionTicketStore. findGrantedResources(RealmModel realm, String requester, String name, Integer first, Integer max)
Methods in org.keycloak.models.map.authorization with parameters of type Resource Modifier and Type Method Description PermissionTicket
MapPermissionTicketStore. create(ResourceServer resourceServer, Resource resource, Scope scope, String requester)
List<PermissionTicket>
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)
Method parameters in org.keycloak.models.map.authorization with type arguments of type Resource Modifier and Type Method Description void
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)
Constructor parameters in org.keycloak.models.map.authorization with type arguments of type Resource Constructor Description MapResourceStore(KeycloakSession session, MapStorage<MapResourceEntity,Resource> resourceStore, AuthorizationProvider provider)
-
Uses of Resource in org.keycloak.models.map.authorization.adapter
Classes in org.keycloak.models.map.authorization.adapter that implement Resource Modifier and Type Class Description class
AbstractResourceModel<E extends AbstractEntity>
class
MapResourceAdapter
Methods in org.keycloak.models.map.authorization.adapter that return Resource Modifier and Type Method Description Resource
MapPermissionTicketAdapter. getResource()
Methods in org.keycloak.models.map.authorization.adapter that return types with arguments of type Resource Modifier and Type Method Description Set<Resource>
MapPolicyAdapter. getResources()
Methods in org.keycloak.models.map.authorization.adapter with parameters of type Resource Modifier and Type Method Description void
MapPolicyAdapter. addResource(Resource resource)
void
MapPolicyAdapter. removeResource(Resource resource)
-
Uses of Resource in org.keycloak.models.map.storage.chm
Fields in org.keycloak.models.map.storage.chm with type parameters of type Resource Modifier and Type Field Description static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity,Resource>>
MapFieldPredicates. AUTHZ_RESOURCE_PREDICATES
static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity,Resource>>
MapFieldPredicates. AUTHZ_RESOURCE_PREDICATES
-
Uses of Resource in org.keycloak.models.map.storage.jpa.authorization.resource
Method parameters in org.keycloak.models.map.storage.jpa.authorization.resource with type arguments of type Resource Modifier and Type Method Description JpaResourceModelCriteriaBuilder
JpaResourceModelCriteriaBuilder. compare(SearchableModelField<? super Resource> modelField, ModelCriteriaBuilder.Operator op, Object... value)
-
Uses of Resource in org.keycloak.models.utils
Methods in org.keycloak.models.utils that return Resource Modifier and Type Method Description static Resource
RepresentationToModel. toModel(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization)
Methods in org.keycloak.models.utils with parameters of type Resource Modifier and Type Method Description static 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 Resource Modifier and Type Method Description Resource
ClientPermissionManagement. resource(ClientModel client)
Resource
GroupPermissionManagement. resource(GroupModel group)
Resource
IdentityProviderPermissionManagement. resource(IdentityProviderModel idp)
Resource
RolePermissionManagement. resource(RoleModel role)
Resource
UserPermissionManagement. resource()
-