| Package | Description |
|---|---|
| org.apache.druid.server.security |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<String,ResourceAction> |
AuthorizationUtils.DATASOURCE_READ_RA_GENERATOR
Function for the common pattern of generating a resource-action for reading from a datasource, using the
datasource name.
|
static com.google.common.base.Function<String,ResourceAction> |
AuthorizationUtils.DATASOURCE_WRITE_RA_GENERATOR
Function for the common pattern of generating a resource-action for reading from a datasource, using the
datasource name.
|
static com.google.common.base.Function<Resource,ResourceAction> |
AuthorizationUtils.RESOURCE_READ_RA_GENERATOR
Function for the pattern of generating a
ResourceAction for reading from a given Resource |
static com.google.common.base.Function<String,ResourceAction> |
AuthorizationUtils.VIEW_READ_RA_GENERATOR
Function for the common pattern of generating a resource-action for reading from a view, using the
view name.
|
| Modifier and Type | Method and Description |
|---|---|
static List<ResourceAction> |
AuthorizationUtils.makeSuperUserPermissions() |
| Modifier and Type | Method and Description |
|---|---|
static Access |
AuthorizationUtils.authorizeResourceAction(javax.servlet.http.HttpServletRequest request,
ResourceAction resourceAction,
AuthorizerMapper authorizerMapper)
Check a resource-action using the authorization fields from the request.
|
| Modifier and Type | Method and Description |
|---|---|
static Access |
AuthorizationUtils.authorizeAllResourceActions(AuthenticationResult authenticationResult,
Iterable<ResourceAction> resourceActions,
AuthorizerMapper authorizerMapper)
Check a list of resource-actions to be performed by the identity represented by authenticationResult.
|
static Access |
AuthorizationUtils.authorizeAllResourceActions(javax.servlet.http.HttpServletRequest request,
Iterable<ResourceAction> resourceActions,
AuthorizerMapper authorizerMapper)
Check a list of resource-actions to be performed as a result of an HTTP request.
|
static <ResType> Iterable<ResType> |
AuthorizationUtils.filterAuthorizedResources(AuthenticationResult authenticationResult,
Iterable<ResType> resources,
com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator,
AuthorizerMapper authorizerMapper)
Filter a collection of resources by applying the resourceActionGenerator to each resource, return an iterable
containing the filtered resources.
|
static <ResType> Iterable<ResType> |
AuthorizationUtils.filterAuthorizedResources(javax.servlet.http.HttpServletRequest request,
Iterable<ResType> resources,
com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator,
AuthorizerMapper authorizerMapper)
Filter a collection of resources by applying the resourceActionGenerator to each resource, return an iterable
containing the filtered resources.
|
static <KeyType,ResType> |
AuthorizationUtils.filterAuthorizedResources(javax.servlet.http.HttpServletRequest request,
Map<KeyType,List<ResType>> unfilteredResources,
com.google.common.base.Function<? super ResType,Iterable<ResourceAction>> resourceActionGenerator,
AuthorizerMapper authorizerMapper)
Given a map of resource lists, filter each resources list by applying the resource action generator to each
item in each resource list.
|
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.