Uses of Class
org.apache.druid.server.security.AuthorizationResult
Packages that use AuthorizationResult
Package
Description
-
Uses of AuthorizationResult in org.apache.druid.segment.realtime
Methods in org.apache.druid.segment.realtime that return AuthorizationResultModifier and TypeMethodDescriptionstatic AuthorizationResultChatHandlers.authorizationCheck(javax.servlet.http.HttpServletRequest req, Action action, String dataSource, AuthorizerMapper authorizerMapper) Check authorization for the given action and dataSource. -
Uses of AuthorizationResult in org.apache.druid.server
Methods in org.apache.druid.server that return AuthorizationResultModifier and TypeMethodDescriptionQueryLifecycle.authorize(javax.servlet.http.HttpServletRequest req) ReturnsAuthorizationResultbased onDRUID_AUTHENTICATION_RESULTin the given request, base query would be transformed with restrictions on the AuthorizationResult.QueryLifecycle.authorize(AuthenticationResult authenticationResult) ReturnsAuthorizationResultbased on the givenAuthenticationResult, base query would be transformed with restrictions on the AuthorizationResult.Methods in org.apache.druid.server with parameters of type AuthorizationResultModifier and TypeMethodDescription<T> QueryResponse<T>QueryLifecycle.runSimple(Query<T> query, AuthenticationResult authenticationResult, AuthorizationResult authorizationResult) For callers who have already authorized their query, and where simplicity is desired over flexibility. -
Uses of AuthorizationResult in org.apache.druid.server.security
Fields in org.apache.druid.server.security declared as AuthorizationResultModifier and TypeFieldDescriptionstatic final AuthorizationResultAuthorizationResult.ALLOW_NO_RESTRICTIONProvides access with no restrictions to all resources.This should be limited to Druid internal systems or superusers, except in cases where granular ACL considerations are not a priority.static final AuthorizationResultAuthorizationResult.DENYProvides a default deny access result.Methods in org.apache.druid.server.security that return AuthorizationResultModifier and TypeMethodDescriptionstatic AuthorizationResultAuthorizationResult.allowWithRestriction(Map<String, Optional<Policy>> policyRestrictions) static AuthorizationResultAuthorizationUtils.authorizeAllResourceActions(javax.servlet.http.HttpServletRequest request, Iterable<ResourceAction> resourceActions, AuthorizerMapper authorizerMapper) Performs authorization check on a list of resource-actions based on the authentication fields from the request.static AuthorizationResultAuthorizationUtils.authorizeAllResourceActions(AuthenticationResult authenticationResult, Iterable<ResourceAction> resourceActions, AuthorizerMapper authorizerMapper) Performs authorization check on a list of resource-actions based on the authenticationResult.static AuthorizationResultAuthorizationUtils.authorizeResourceAction(javax.servlet.http.HttpServletRequest request, ResourceAction resourceAction, AuthorizerMapper authorizerMapper) Performs authorization check on a single resource-action based on the authentication fields from the request.static AuthorizationResult