public final class AccessControlConfigManager extends Object implements AlertGenerator, org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.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 |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.AccessControlHandlerCfg configuration) |
AccessControlHandler<?> |
getAccessControlHandler()
Get the active access control handler.
|
LinkedHashMap<String,String> |
getAlerts()
Retrieves information about the set of alerts that this generator
may produce.
|
String |
getClassName()
Retrieves the fully-qualified name of the Java class for this
alert generator implementation.
|
org.forgerock.opendj.ldap.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.
|
void |
initializeAccessControl(ServerContext serverContext)
Initializes the access control sub-system.
|
boolean |
isAccessControlEnabled()
Determine if access control is enabled according to the current
configuration.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.AccessControlHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
public static AccessControlConfigManager getInstance()
public boolean isAccessControlEnabled()
true if access control is enabled, false
otherwise.public AccessControlHandler<?> getAccessControlHandler()
When access control is disabled, this method returns a default access control implementation which permits all operations.
null).public void initializeAccessControl(ServerContext serverContext) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
serverContext - The server context.org.forgerock.opendj.config.server.ConfigException - If an access control configuration error is detected.InitializationException - If a problem occurs while initializing the access control handler
that is not related to the Directory Server configuration.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.AccessControlHandlerCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.AccessControlHandlerCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.AccessControlHandlerCfg configuration)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.AccessControlHandlerCfg>public org.forgerock.opendj.ldap.DN getComponentEntryDN()
AlertGeneratorgetComponentEntryDN in interface AlertGeneratorpublic String getClassName()
AlertGeneratorgetClassName in interface AlertGeneratorpublic LinkedHashMap<String,String> getAlerts()
AlertGeneratorgetAlerts in interface AlertGeneratorCopyright © 2010-2020 Wren Security. All Rights Reserved.