public class BasicAccessControlService extends AbstractIdentifiableInitializableComponent implements AccessControlService
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Map<String,AccessControl> |
policyMap
Map of named policies.
|
Constructor and Description |
---|
BasicAccessControlService()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessControl |
getInstance(String name)
Get an
AccessControl instance matching a given name. |
void |
setPolicyMap(Map<String,AccessControl> map)
Set the policies to store.
|
setId
doInitialize, getId
destroy, doDestroy, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
getId
@Nonnull private final org.slf4j.Logger log
@Nonnull @NonnullElements private Map<String,AccessControl> policyMap
public void setPolicyMap(@Nonnull @NonnullElements Map<String,AccessControl> map)
map
- map of named policies@Nonnull public AccessControl getInstance(@Nonnull String name)
AccessControl
instance matching a given name.
In the absence of a matching instance, a default policy that denies access is returned.
getInstance
in interface AccessControlService
name
- policy nameCopyright © 1999–2017. All rights reserved.