| | |
| | | import org.opends.server.api.EntryCache; |
| | | import org.opends.server.api.ExportTaskListener; |
| | | import org.opends.server.api.ExtendedOperationHandler; |
| | | import org.opends.server.api.Extension; |
| | | import org.opends.server.api.IdentityMapper; |
| | | import org.opends.server.api.ImportTaskListener; |
| | | import org.opends.server.api.InitializationCompletedListener; |
| | |
| | | /** The set of key manager providers registered with the server. */ |
| | | private ConcurrentMap<DN, KeyManagerProvider> keyManagerProviders; |
| | | |
| | | /** The set of extensions registered with the server. */ |
| | | private ConcurrentMap<DN, Extension> extensions; |
| | | |
| | | /** |
| | | * The set of password generators registered with the Directory Server, as a |
| | | * mapping between the DN of the associated configuration entry and the |
| | |
| | | */ |
| | | private KeyManagerProviderConfigManager keyManagerProviderConfigManager; |
| | | |
| | | /** The extension configuration manager for the Directory Server. */ |
| | | private ExtensionConfigManager extensionConfigManager; |
| | | |
| | | /** The set of connections that are currently established. */ |
| | | private Set<ClientConnection> establishedConnections; |
| | | |
| | |
| | | directoryServer.alternateRootBindDNs = new ConcurrentHashMap<DN,DN>(); |
| | | directoryServer.keyManagerProviders = |
| | | new ConcurrentHashMap<DN,KeyManagerProvider>(); |
| | | directoryServer.extensions = |
| | | new ConcurrentHashMap<DN,Extension>(); |
| | | directoryServer.trustManagerProviders = |
| | | new ConcurrentHashMap<DN,TrustManagerProvider>(); |
| | | directoryServer.rotationPolicies = |
| | |
| | | |
| | | pluginConfigManager.initializeUserPlugins(null); |
| | | |
| | | extensionConfigManager = new ExtensionConfigManager(serverContext); |
| | | extensionConfigManager.initializeExtensions(); |
| | | |
| | | if (!environmentConfig.disableSynchronization()) |
| | | { |
| | | synchronizationProviderConfigManager = new SynchronizationProviderConfigManager(serverContext); |
| | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the set of extensions registered with the Directory |
| | | * Server. |
| | | * |
| | | * @return The set of extensions registered with the Directory |
| | | * Server. |
| | | */ |
| | | public static Map<DN,Extension> getExtensions() |
| | | { |
| | | return directoryServer.extensions; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the extension registered with the provided entry DN. |
| | | * |
| | | * @param providerDN The DN with which the extension is |
| | | * registered. |
| | | * |
| | | * @return The extension registered with the provided entry DN, or |
| | | * {@code null} if there is no such extension registered |
| | | * with the server. |
| | | */ |
| | | public static Extension getExtension(DN providerDN) |
| | | { |
| | | return directoryServer.extensions.get(providerDN); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Registers the provided extension with the Directory Server. |
| | | * |
| | | * @param providerDN The DN with which to register the extension. |
| | | * @param provider The extension to register with the server. |
| | | */ |
| | | public static void registerExtension(DN providerDN, |
| | | Extension provider) |
| | | { |
| | | directoryServer.extensions.put(providerDN, provider); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Deregisters the specified extension with the Directory Server. |
| | | * |
| | | * @param providerDN The DN with which the extension is |
| | | * registered. |
| | | */ |
| | | public static void deregisterExtension(DN providerDN) |
| | | { |
| | | directoryServer.extensions.remove(providerDN); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves a set containing the names of the allowed tasks that may be |
| | | * invoked in the server. |
| | | * |