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 it
|
org.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 | |
org.keycloak.models.utils | |
org.keycloak.services.resources.admin.permissions |
Modifier and Type | Method and 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) |
Modifier and Type | Class and Description |
---|---|
class |
ResourceAdapter |
Modifier and Type | Method and Description |
---|---|
Resource |
JPAResourceStore.create(String id,
String name,
ResourceServer resourceServer,
String owner) |
Resource |
JPAResourceStore.findById(String id,
String resourceServerId) |
Resource |
JPAResourceStore.findByName(String name,
String resourceServerId) |
Resource |
JPAResourceStore.findByName(String name,
String ownerId,
String resourceServerId) |
Resource |
PermissionTicketAdapter.getResource() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
JPAResourceStore.findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
JPAResourceStore.findByResourceServer(Map<Resource.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
List<Resource> |
JPAResourceStore.findByResourceServer(String resourceServerId) |
List<Resource> |
JPAResourceStore.findByUri(String uri,
String resourceServerId) |
List<Resource> |
JPAPermissionTicketStore.findGrantedOwnerResources(String owner,
int first,
int max) |
List<Resource> |
JPAPermissionTicketStore.findGrantedResources(String requester,
String name,
int first,
int max) |
Set<Resource> |
PolicyAdapter.getResources() |
Modifier and Type | Method and Description |
---|---|
void |
PolicyAdapter.addResource(Resource resource) |
void |
PolicyAdapter.removeResource(Resource resource) |
static ResourceEntity |
ResourceAdapter.toEntity(javax.persistence.EntityManager em,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
void |
JPAResourceStore.findByOwner(String ownerId,
String resourceServerId,
Consumer<Resource> consumer) |
void |
JPAResourceStore.findByScope(List<String> scopes,
String resourceServerId,
Consumer<Resource> consumer) |
void |
JPAResourceStore.findByType(String type,
String resourceServerId,
Consumer<Resource> consumer) |
void |
JPAResourceStore.findByType(String type,
String owner,
String resourceServerId,
Consumer<Resource> consumer) |
void |
JPAResourceStore.findByTypeInstance(String type,
String resourceServerId,
Consumer<Resource> consumer) |
Modifier and Type | Field and 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.RESOURCE_SERVER_ID |
static SearchableModelField<Resource> |
Resource.SearchableFields.SCOPE_ID |
static SearchableModelField<Resource> |
Resource.SearchableFields.TYPE |
static SearchableModelField<Resource> |
Resource.SearchableFields.URI |
Modifier and Type | Method and Description |
---|---|
Resource |
PermissionTicket.getResource()
Returns the
Resource associated with this instance |
Modifier and Type | Method and Description |
---|---|
Set<Resource> |
Policy.getResources()
Returns the
Resource instances where this policy applies. |
SearchableModelField<Resource> |
Resource.FilterOption.getSearchableModelField() |
Modifier and Type | Method and Description |
---|---|
void |
Policy.addResource(Resource resource) |
void |
Policy.removeResource(Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourcePermission.getResource()
Returns the resource to which this permission applies.
|
Modifier and Type | Method and 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) |
Constructor and 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) |
Constructor and Description |
---|
UmaResourceRepresentation(Resource resource) |
Modifier and Type | Method and Description |
---|---|
default Resource |
ResourceStore.create(String name,
ResourceServer resourceServer,
String owner)
Creates a
Resource instance backed by this persistent storage implementation. |
Resource |
ResourceStore.create(String id,
String name,
ResourceServer resourceServer,
String owner)
Creates a
Resource instance backed by this persistent storage implementation. |
Resource |
ResourceStore.findById(String id,
String resourceServerId)
Returns a
Resource instance based on its identifier. |
Resource |
ResourceStore.findByName(String name,
String resourceServerId)
Find a
Resource by its name where the owner is the resource server itself. |
Resource |
ResourceStore.findByName(String name,
String ownerId,
String resourceServerId)
Find a
Resource by its name where the owner is the given ownerId . |
Modifier and Type | Method and Description |
---|---|
default List<Resource> |
ResourceStore.findByOwner(String ownerId,
String resourceServerId)
Finds all
Resource instances with the given ownerId . |
List<Resource> |
ResourceStore.findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
ResourceStore.findByResourceServer(Map<Resource.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult)
Finds all
Resource instances associated with a given resource server. |
List<Resource> |
ResourceStore.findByResourceServer(String resourceServerId)
Finds all
Resource instances associated with a given resource server. |
default List<Resource> |
ResourceStore.findByScope(List<String> id,
String resourceServerId)
Finds all
Resource associated with a given scope. |
default List<Resource> |
ResourceStore.findByType(String type,
String resourceServerId)
Finds all
Resource with the given type. |
default List<Resource> |
ResourceStore.findByType(String type,
String owner,
String resourceServerId)
Finds all
Resource with the given type. |
default List<Resource> |
ResourceStore.findByTypeInstance(String type,
String resourceServerId) |
List<Resource> |
ResourceStore.findByUri(String uri,
String resourceServerId)
Finds all
Resource instances with the given uri. |
List<Resource> |
PermissionTicketStore.findGrantedOwnerResources(String owner,
int first,
int max)
Returns a list of
Resource granted by the owner to other users |
List<Resource> |
PermissionTicketStore.findGrantedResources(String requester,
String name,
int first,
int max)
Returns a list of
Resource granted to the given requester |
Modifier and Type | Method and Description |
---|---|
void |
ResourceStore.findByOwner(String ownerId,
String resourceServerId,
Consumer<Resource> consumer) |
void |
ResourceStore.findByScope(List<String> scopes,
String resourceServerId,
Consumer<Resource> consumer) |
void |
ResourceStore.findByType(String type,
String resourceServerId,
Consumer<Resource> consumer)
Finds all
Resource with the given type. |
void |
ResourceStore.findByType(String type,
String owner,
String resourceServerId,
Consumer<Resource> consumer)
Finds all
Resource with the given type. |
void |
ResourceStore.findByTypeInstance(String type,
String resourceServerId,
Consumer<Resource> consumer) |
Constructor and Description |
---|
ResourceBean(Resource resource) |
Modifier and Type | Field and Description |
---|---|
protected Resource |
ResourceAdapter.updated |
Modifier and Type | Field and Description |
---|---|
protected Set<Resource> |
PolicyAdapter.resources |
Modifier and Type | Method and Description |
---|---|
Resource |
StoreFactoryCacheSession.ResourceCache.create(String id,
String name,
ResourceServer resourceServer,
String owner) |
Resource |
StoreFactoryCacheSession.ResourceCache.findById(String id,
String resourceServerId) |
Resource |
StoreFactoryCacheSession.ResourceCache.findByName(String name,
String resourceServerId) |
Resource |
StoreFactoryCacheSession.ResourceCache.findByName(String name,
String ownerId,
String resourceServerId) |
Resource |
ResourceAdapter.getDelegateForUpdate() |
Resource |
PermissionTicketAdapter.getResource() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByOwner(String ownerId,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByResourceServer(Map<Resource.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByResourceServer(String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByScope(List<String> ids,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByType(String type,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByType(String type,
String owner,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByTypeInstance(String type,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.ResourceCache.findByUri(String uri,
String resourceServerId) |
List<Resource> |
StoreFactoryCacheSession.PermissionTicketCache.findGrantedOwnerResources(String owner,
int first,
int max) |
List<Resource> |
StoreFactoryCacheSession.PermissionTicketCache.findGrantedResources(String requester,
String name,
int first,
int max) |
Set<Resource> |
PolicyAdapter.getResources() |
Modifier and Type | Method and Description |
---|---|
void |
PolicyAdapter.addResource(Resource resource) |
void |
PolicyAdapter.removeResource(Resource resource) |
Modifier and Type | Method and Description |
---|---|
void |
StoreFactoryCacheSession.ResourceCache.findByOwner(String ownerId,
String resourceServerId,
Consumer<Resource> consumer) |
void |
StoreFactoryCacheSession.ResourceCache.findByScope(List<String> ids,
String resourceServerId,
Consumer<Resource> consumer) |
void |
StoreFactoryCacheSession.ResourceCache.findByType(String type,
String resourceServerId,
Consumer<Resource> consumer) |
void |
StoreFactoryCacheSession.ResourceCache.findByType(String type,
String owner,
String resourceServerId,
Consumer<Resource> consumer) |
void |
StoreFactoryCacheSession.ResourceCache.findByTypeInstance(String type,
String resourceServerId,
Consumer<Resource> consumer) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
CachedResource.getAttributes(Supplier<Resource> source) |
Set<String> |
CachedResource.getScopesIds(Supplier<Resource> source) |
Set<String> |
CachedResource.getUris(Supplier<Resource> source) |
Constructor and Description |
---|
CachedResource(Long revision,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
MapResourceStore.create(String id,
String name,
ResourceServer resourceServer,
String owner) |
Resource |
MapResourceStore.findById(String id,
String resourceServerId) |
Resource |
MapResourceStore.findByName(String name,
String resourceServerId) |
Resource |
MapResourceStore.findByName(String name,
String ownerId,
String resourceServerId) |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
MapResourceStore.findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
MapResourceStore.findByResourceServer(Map<Resource.FilterOption,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
List<Resource> |
MapResourceStore.findByResourceServer(String resourceServerId) |
List<Resource> |
MapResourceStore.findByUri(String uri,
String resourceServerId) |
List<Resource> |
MapPermissionTicketStore.findGrantedOwnerResources(String owner,
int first,
int max) |
List<Resource> |
MapPermissionTicketStore.findGrantedResources(String requester,
String name,
int first,
int max) |
Modifier and Type | Method and Description |
---|---|
void |
MapResourceStore.findByOwner(String ownerId,
String resourceServerId,
Consumer<Resource> consumer) |
void |
MapResourceStore.findByScope(List<String> scopes,
String resourceServerId,
Consumer<Resource> consumer) |
void |
MapResourceStore.findByType(String type,
String resourceServerId,
Consumer<Resource> consumer) |
void |
MapResourceStore.findByType(String type,
String owner,
String resourceServerId,
Consumer<Resource> consumer) |
void |
MapResourceStore.findByTypeInstance(String type,
String resourceServerId,
Consumer<Resource> consumer) |
Constructor and Description |
---|
MapResourceStore(KeycloakSession session,
MapStorage<K,MapResourceEntity<K>,Resource> resourceStore,
AuthorizationProvider provider) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractResourceModel<E extends AbstractEntity<?>> |
class |
MapResourceAdapter<K> |
Modifier and Type | Method and Description |
---|---|
Resource |
MapPermissionTicketAdapter.getResource() |
Modifier and Type | Method and Description |
---|---|
Set<Resource> |
MapPolicyAdapter.getResources() |
Modifier and Type | Method and Description |
---|---|
void |
MapPolicyAdapter.addResource(Resource resource) |
void |
MapPolicyAdapter.removeResource(Resource resource) |
Modifier and Type | Field and Description |
---|---|
static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity<Object>,Resource>> |
MapFieldPredicates.AUTHZ_RESOURCE_PREDICATES |
static Map<SearchableModelField<Resource>,MapModelCriteriaBuilder.UpdatePredicatesFunc<Object,MapResourceEntity<Object>,Resource>> |
MapFieldPredicates.AUTHZ_RESOURCE_PREDICATES |
Modifier and Type | Method and Description |
---|---|
static Resource |
RepresentationToModel.toModel(ResourceRepresentation resource,
ResourceServer resourceServer,
AuthorizationProvider authorization) |
Modifier and Type | Method and Description |
---|---|
static ResourceRepresentation |
ModelToRepresentation.toRepresentation(Resource model,
String resourceServer,
AuthorizationProvider authorization) |
static ResourceRepresentation |
ModelToRepresentation.toRepresentation(Resource model,
String resourceServer,
AuthorizationProvider authorization,
Boolean deep) |
Modifier and Type | Method and Description |
---|---|
Resource |
UserPermissionManagement.resource() |
Resource |
ClientPermissionManagement.resource(ClientModel client) |
Resource |
GroupPermissionManagement.resource(GroupModel group) |
Resource |
IdentityProviderPermissionManagement.resource(IdentityProviderModel idp) |
Resource |
RolePermissionManagement.resource(RoleModel role) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.