|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.core.AccessControlConfigManager
public final class AccessControlConfigManager
This class manages the application-wide access-control configuration.
When access control is disabled a default "permissive" access control implementation is used, which permits all operations regardless of the identity of the user.
Method Summary | |
---|---|
ConfigChangeResult |
applyConfigurationChange(AccessControlHandlerCfg configuration)
Applies the configuration changes to this change listener. |
AccessControlHandler |
getAccessControlHandler()
Get the active access control handler. |
java.util.LinkedHashMap<java.lang.String,java.lang.String> |
getAlerts()
Retrieves information about the set of alerts that this generator may produce. |
java.lang.String |
getClassName()
Retrieves the fully-qualified name of the Java class for this alert generator implementation. |
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()
Initializes the access control sub-system. |
boolean |
isAccessControlEnabled()
Determine if access control is enabled according to the current configuration. |
boolean |
isConfigurationChangeAcceptable(AccessControlHandlerCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable to this change listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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() throws ConfigException, InitializationException
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(AccessControlHandlerCfg configuration, java.util.List<Message> unacceptableReasons)
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)
applyConfigurationChange
in interface ConfigurationChangeListener<AccessControlHandlerCfg>
configuration
- The new configuration containing the changes.
public DN getComponentEntryDN()
getComponentEntryDN
in interface AlertGenerator
public java.lang.String getClassName()
getClassName
in interface AlertGenerator
public java.util.LinkedHashMap<java.lang.String,java.lang.String> getAlerts()
getAlerts
in interface AlertGenerator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |