| Package | Description |
|---|---|
| org.keycloak.authorization.model |
Provides the domain model and any other type related with it
|
| org.keycloak.authorization.permission | |
| org.keycloak.authorization.store |
Provides classes and a SPI to plug different metadata storage implementations.
|
| org.keycloak.models.utils |
| 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) |
| 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,
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 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) |
Copyright © 2019 JBoss by Red Hat. All rights reserved.