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.authorization.util | |
org.keycloak.forms.account.freemarker.model | |
org.keycloak.models.cache.infinispan.authorization | |
org.keycloak.models.cache.infinispan.authorization.entities | |
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 name,
ResourceServer resourceServer,
String owner) |
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) |
List<Resource> |
JPAResourceStore.findByOwner(String ownerId,
String resourceServerId,
int first,
int max) |
List<Resource> |
JPAResourceStore.findByResourceServer(Map<String,String[]> attributes,
String resourceServerId,
int firstResult,
int maxResult) |
List<Resource> |
JPAResourceStore.findByResourceServer(String resourceServerId) |
List<Resource> |
JPAResourceStore.findByScope(List<String> scopes,
String resourceServerId) |
List<Resource> |
JPAResourceStore.findByType(String type,
String resourceServerId) |
List<Resource> |
JPAResourceStore.findByType(String type,
String owner,
String resourceServerId) |
List<Resource> |
JPAResourceStore.findByTypeInstance(String type,
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 | 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. |
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.
|
Constructor and Description |
---|
ResourcePermission(Resource resource,
List<Scope> scopes,
ResourceServer resourceServer) |
ResourcePermission(Resource resource,
List<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 |
---|---|
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 |
---|---|
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<String,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. |
List<Resource> |
ResourceStore.findByScope(List<String> id,
String resourceServerId)
Finds all
Resource associated with a given scope. |
List<Resource> |
ResourceStore.findByType(String type,
String resourceServerId)
Finds all
Resource with the given type. |
List<Resource> |
ResourceStore.findByType(String type,
String owner,
String resourceServerId)
Finds all
Resource with the given type. |
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) |
Modifier and Type | Method and Description |
---|---|
static ResourcePermission |
Permissions.createResourcePermissions(Resource resource,
AuthorizationProvider authorization,
AuthorizationRequest request) |
static ResourcePermission |
Permissions.createResourcePermissions(Resource resource,
Collection<Scope> requestedScopes,
AuthorizationProvider authorization,
AuthorizationRequest request) |
static ResourcePermission |
Permissions.permission(ResourceServer server,
Resource resource,
Scope scope) |
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 name,
ResourceServer resourceServer,
String owner) |
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<String,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 |
---|---|
static Resource |
RepresentationToModel.toModel(ResourceRepresentation resource,
ResourceServer resourceServer,
AuthorizationProvider authorization) |
Modifier and Type | Method and Description |
---|---|
static ResourceRepresentation |
ModelToRepresentation.toRepresentation(Resource model,
ResourceServer resourceServer,
AuthorizationProvider authorization) |
static ResourceRepresentation |
ModelToRepresentation.toRepresentation(Resource model,
ResourceServer 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 © 2020 JBoss by Red Hat. All rights reserved.