Uses of Interface
org.keycloak.authorization.model.Resource
Packages that use 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.model
Methods 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(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(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 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(RealmModel realm, 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(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption, String[]> attributes, Integer firstResult, Integer maxResults) Finds allResourceinstances associated with a given resource server.ResourceStore.findByOwner(RealmModel realm, 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 allResourcefromResourceServerwith the given type.PermissionTicketStore.findGrantedOwnerResources(RealmModel realm, String owner, Integer firstResult, Integer maxResults) Returns a list ofResourcegranted by the owner to other usersPermissionTicketStore.findGrantedResources(RealmModel realm, 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(RealmModel realm, ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer) 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.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)