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 | 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) |
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) |
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) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.