public class AbstractAuthorizationService
extends com.google.common.util.concurrent.AbstractScheduledService
AbstractScheduledService that maintains a cache of privileges. The cache is updated periodically using
the provided PrivilegesFetcher.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
authorizationEnabled |
protected boolean |
cacheEnabled |
protected boolean |
securityEnabled |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAuthorizationService(CConfiguration cConf,
PrivilegesFetcher privilegesFetcher,
AuthenticationContext authenticationContext,
String serviceName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvalidate(com.google.common.base.Predicate<Principal> predicate) |
protected ScheduledExecutorService |
executor() |
protected Map<EntityId,Set<Action>> |
fetchPrivileges(Principal principal) |
protected Map<EntityId,Set<Action>> |
getPrivileges(Principal principal) |
protected void |
runOneIteration() |
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler |
scheduler() |
protected void |
shutDown() |
protected void |
startUp() |
protected final boolean securityEnabled
protected final boolean authorizationEnabled
protected final boolean cacheEnabled
protected AbstractAuthorizationService(CConfiguration cConf, PrivilegesFetcher privilegesFetcher, AuthenticationContext authenticationContext, String serviceName)
protected com.google.common.util.concurrent.AbstractScheduledService.Scheduler scheduler()
scheduler in class com.google.common.util.concurrent.AbstractScheduledServiceprotected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractScheduledServiceExceptionprotected void runOneIteration()
runOneIteration in class com.google.common.util.concurrent.AbstractScheduledServiceprotected ScheduledExecutorService executor()
executor in class com.google.common.util.concurrent.AbstractScheduledServiceprotected void shutDown()
throws Exception
shutDown in class com.google.common.util.concurrent.AbstractScheduledServiceExceptionprotected Map<EntityId,Set<Action>> fetchPrivileges(Principal principal) throws Exception
Exceptionprotected Map<EntityId,Set<Action>> getPrivileges(Principal principal) throws Exception
Exceptionprotected void doInvalidate(com.google.common.base.Predicate<Principal> predicate)
Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.