Uses of Interface
org.keycloak.authorization.model.ResourceServer
-
Packages that use ResourceServer Package Description org.keycloak.authorization.model Provides the domain model and any other type related with itorg.keycloak.authorization.permission org.keycloak.authorization.permission.evaluator org.keycloak.authorization.policy.evaluation Provides classes related with the evaluation of policies.org.keycloak.authorization.policy.provider Provides classes and a SPI to plug different policy providers.org.keycloak.authorization.store Provides classes and a SPI to plug different metadata storage implementations.org.keycloak.models.utils -
-
Uses of ResourceServer in org.keycloak.authorization.model
Fields in org.keycloak.authorization.model with type parameters of type ResourceServer Modifier and Type Field Description static SearchableModelField<ResourceServer>ResourceServer.SearchableFields. CLIENT_IDID of the client (not the clientId) associated with resource serverstatic SearchableModelField<ResourceServer>ResourceServer.SearchableFields. IDstatic SearchableModelField<ResourceServer>ResourceServer.SearchableFields. REALM_IDMethods in org.keycloak.authorization.model that return ResourceServer Modifier and Type Method Description ResourceServerPermissionTicket. getResourceServer()Returns theResourceServerwhere this policy belongs to.ResourceServerPolicy. getResourceServer()Returns theResourceServerwhere this policy belongs to.ResourceServerResource. getResourceServer()Returns theResourceServerto where this resource belongs to.ResourceServerScope. getResourceServer()Returns theResourceServerinstance to where this scope belongs to. -
Uses of ResourceServer in org.keycloak.authorization.permission
Methods in org.keycloak.authorization.permission that return ResourceServer Modifier and Type Method Description ResourceServerResourcePermission. getResourceServer()Returns the resource server associated with this permission.Methods in org.keycloak.authorization.permission with parameters of type ResourceServer Modifier and Type Method Description static voidPermissions. all(ResourceServer resourceServer, Identity identity, AuthorizationProvider authorization, AuthorizationRequest request, Consumer<ResourcePermission> evaluator)Returns a list of permissions for all resources and scopes that belong to the givenresourceServerandidentity.static ResourcePermissionPermissions. createResourcePermissions(Resource resource, ResourceServer resourceServer, Collection<Scope> requestedScopes, AuthorizationProvider authorization, AuthorizationRequest request)static ResourcePermissionPermissions. 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 ResourceServer 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 ResourceServer in org.keycloak.authorization.permission.evaluator
Methods in org.keycloak.authorization.permission.evaluator with parameters of type ResourceServer Modifier and Type Method Description Collection<Permission>PermissionEvaluator. evaluate(ResourceServer resourceServer, AuthorizationRequest request)Collection<Permission>UnboundedPermissionEvaluator. evaluate(ResourceServer resourceServer, AuthorizationRequest request)PermissionEvaluatorEvaluators. from(EvaluationContext evaluationContext, ResourceServer resourceServer, AuthorizationRequest request) -
Uses of ResourceServer in org.keycloak.authorization.policy.evaluation
Methods in org.keycloak.authorization.policy.evaluation with parameters of type ResourceServer Modifier and Type Method Description protected voidDecisionPermissionCollector. grantPermission(AuthorizationProvider authorizationProvider, Set<Permission> permissions, ResourcePermission permission, Collection<Scope> grantedScopes, ResourceServer resourceServer, AuthorizationRequest request, Result result)Constructors in org.keycloak.authorization.policy.evaluation with parameters of type ResourceServer Constructor Description DecisionPermissionCollector(AuthorizationProvider authorizationProvider, ResourceServer resourceServer, AuthorizationRequest request)PermissionTicketAwareDecisionResultCollector(AuthorizationRequest request, PermissionTicketToken ticket, Identity identity, ResourceServer resourceServer, AuthorizationProvider authorization) -
Uses of ResourceServer in org.keycloak.authorization.policy.provider
Methods in org.keycloak.authorization.policy.provider with parameters of type ResourceServer Modifier and Type Method Description default PolicyProviderAdminServicePolicyProviderFactory. getAdminResource(ResourceServer resourceServer, AuthorizationProvider authorization) -
Uses of ResourceServer in org.keycloak.authorization.store
Methods in org.keycloak.authorization.store that return ResourceServer Modifier and Type Method Description ResourceServerResourceServerStore. create(ClientModel client)Creates aResourceServerinstance backed by this persistent storage implementation.ResourceServerResourceServerStore. findByClient(ClientModel client)Returns aResourceServerinstance based on a client.ResourceServerResourceServerStore. findById(RealmModel realm, String id)Returns aResourceServerinstance based on its identifier.Methods in org.keycloak.authorization.store with parameters of type ResourceServer Modifier and Type Method Description longPermissionTicketStore. count(ResourceServer resourceServer, Map<PermissionTicket.FilterOption,String> attributes)Returns count ofPermissionTicket, filtered by the given attributes.PermissionTicketPermissionTicketStore. create(ResourceServer resourceServer, Resource resource, Scope scope, String requester)Creates a newPermissionTicketinstance.PolicyPolicyStore. create(ResourceServer resourceServer, AbstractPolicyRepresentation representation)Creates a newPolicyinstance.default ResourceResourceStore. create(ResourceServer resourceServer, String name, String owner)Creates aResourceinstance backed by this persistent storage implementation.ResourceResourceStore. create(ResourceServer resourceServer, String id, String name, String owner)Creates aResourceinstance backed by this persistent storage implementation.default ScopeScopeStore. create(ResourceServer resourceServer, String name)Creates a newScopeinstance.ScopeScopeStore. create(ResourceServer resourceServer, String id, String name)Creates a newScopeinstance.List<PermissionTicket>PermissionTicketStore. find(RealmModel realm, ResourceServer resourceServer, Map<PermissionTicket.FilterOption,String> attributes, Integer firstResult, Integer maxResults)Returns a list ofPermissionTicket, filtered by the given attributes.List<Policy>PolicyStore. find(RealmModel realm, ResourceServer resourceServer, Map<Policy.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)List<Resource>ResourceStore. find(RealmModel realm, ResourceServer resourceServer, Map<Resource.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)Finds allResourceinstances associated with a given resource server.PermissionTicketPermissionTicketStore. findById(RealmModel realm, ResourceServer resourceServer, String id)Returns aPermissionTicketwith the givenidPolicyPolicyStore. findById(RealmModel realm, ResourceServer resourceServer, String id)Returns aPolicywith the givenidResourceResourceStore. findById(RealmModel realm, ResourceServer resourceServer, String id)Returns aResourceinstance based on its identifier.ScopeScopeStore. findById(RealmModel realm, ResourceServer resourceServer, String id)Returns aScopewith the givenidPolicyPolicyStore. findByName(ResourceServer resourceServer, String name)Returns aPolicywith the givennamedefault ResourceResourceStore. findByName(ResourceServer resourceServer, String name)Find aResourceby its name where the owner is the resource server itself.ResourceResourceStore. findByName(ResourceServer resourceServer, String name, String ownerId)Find aResourceby its name where the owner is the givenownerId.ScopeScopeStore. findByName(ResourceServer resourceServer, String name)Returns aScopewith the givennamedefault List<Resource>ResourceStore. findByOwner(RealmModel realm, ResourceServer resourceServer, String ownerId)Finds allResourceinstances with the givenownerId.voidResourceStore. findByOwner(RealmModel realm, ResourceServer resourceServer, String ownerId, Consumer<Resource> consumer)List<PermissionTicket>PermissionTicketStore. findByResource(ResourceServer resourceServer, Resource resource)Returns a list ofPermissionTicketassociated with theresource.default List<Policy>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 theconsumerList<Policy>PolicyStore. findByResourceServer(ResourceServer resourceServer)Returns a list ofPolicyassociated with theResourceServerList<Resource>ResourceStore. findByResourceServer(ResourceServer resourceServer)Finds allResourceinstances associated with a given resource server.List<Scope>ScopeStore. findByResourceServer(ResourceServer resourceServer)Returns a list ofScopeassociated with theResourceServer.List<Scope>ScopeStore. findByResourceServer(ResourceServer resourceServer, Map<Scope.FilterOption,String[]> attributes, Integer firstResult, Integer maxResults)default List<Policy>PolicyStore. findByResourceType(ResourceServer resourceServer, String resourceType)voidPolicyStore. findByResourceType(ResourceServer resourceServer, String type, Consumer<Policy> policyConsumer)Searches for policies associated with aResourceServerand passes the result to the consumerList<PermissionTicket>PermissionTicketStore. findByScope(ResourceServer resourceServer, Scope scope)Returns a list ofPermissionTicketassociated with thescope.List<Policy>PolicyStore. findByScopes(ResourceServer resourceServer, List<Scope> scopes)default List<Policy>PolicyStore. 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.default List<Resource>ResourceStore. findByScopes(ResourceServer resourceServer, Set<Scope> scopes)Finds allResourceassociated with a given scope.voidResourceStore. findByScopes(ResourceServer resourceServer, Set<Scope> scopes, Consumer<Resource> consumer)List<Policy>PolicyStore. findByType(ResourceServer resourceServer, String type)Returns a list ofPolicywith the giventype.default List<Resource>ResourceStore. findByType(ResourceServer resourceServer, String type)Finds allResourcefromResourceServerwith the given type.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 ownerList<Policy>PolicyStore. findDependentPolicies(ResourceServer resourceServer, String id)Returns a list ofPolicythat depends on another policy with the givenid.List<PermissionTicket>PermissionTicketStore. findGranted(ResourceServer resourceServer, String userId)Returns a list ofPermissionTicketgranted to the givenuserId.List<PermissionTicket>PermissionTicketStore. findGranted(ResourceServer resourceServer, String resourceName, String userId) -
Uses of ResourceServer in org.keycloak.models.utils
Methods in org.keycloak.models.utils that return ResourceServer Modifier and Type Method Description static ResourceServerRepresentationToModel. createResourceServer(ClientModel client, KeycloakSession session, boolean addDefaultRoles)static ResourceServerRepresentationToModel. toModel(ResourceServerRepresentation rep, AuthorizationProvider authorization, ClientModel client)Methods in org.keycloak.models.utils with parameters of type ResourceServer Modifier and Type Method Description static PermissionTicketRepresentationToModel. toModel(PermissionTicketRepresentation representation, ResourceServer resourceServer, AuthorizationProvider authorization)static ResourceRepresentationToModel. toModel(ResourceRepresentation resource, ResourceServer resourceServer, AuthorizationProvider authorization)static ScopeRepresentationToModel. toModel(ScopeRepresentation scope, ResourceServer resourceServer, AuthorizationProvider authorization)static ScopeRepresentationToModel. toModel(ScopeRepresentation scope, ResourceServer resourceServer, AuthorizationProvider authorization, boolean updateIfExists)static ResourceRepresentationModelToRepresentation. toRepresentation(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization)static ResourceRepresentationModelToRepresentation. toRepresentation(Resource model, ResourceServer resourceServer, AuthorizationProvider authorization, Boolean deep)static ResourceServerRepresentationModelToRepresentation. toRepresentation(ResourceServer model, ClientModel client)
-