public final class AccessControlConfigManager extends Object implements AlertGenerator, ConfigurationChangeListener<AccessControlHandlerCfg>
When access control is disabled a default "permissive" access control implementation is used, which permits all operations regardless of the identity of the user.
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(AccessControlHandlerCfg configuration)
Applies the configuration changes to this change listener.
|
AccessControlHandler<?> |
getAccessControlHandler()
Get the active access control handler.
|
Map<String,String> |
getAlerts()
Retrieves information about the set of alerts that this generator may produce.
|
Dn |
getComponentEntryDN()
Retrieves the DN of the configuration entry with which this alert generator is associated.
|
static AccessControlConfigManager |
getInstance()
Get the single application-wide access control manager instance.
|
boolean |
isConfigurationChangeAcceptable(AccessControlHandlerCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassName
public static AccessControlConfigManager getInstance()
public AccessControlHandler<?> getAccessControlHandler()
When access control is disabled, this method returns a default access control implementation which permits all operations.
null
).public boolean isConfigurationChangeAcceptable(AccessControlHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<AccessControlHandlerCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(AccessControlHandlerCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<AccessControlHandlerCfg>
configuration
- The new configuration containing the changes.public Dn getComponentEntryDN()
AlertGenerator
getComponentEntryDN
in interface AlertGenerator
public Map<String,String> getAlerts()
AlertGenerator
getAlerts
in interface AlertGenerator
Copyright 2010-2022 ForgeRock AS.