Uses of Interface
org.keycloak.authorization.model.Resource
-
Packages that use Resource Package Description org.keycloak.authorization.model Provides the domain model and any other type related with itorg.keycloak.authorization.permission org.keycloak.authorization.store Provides classes and a SPI to plug different metadata storage implementations.org.keycloak.models.utils -
-
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.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.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)
-