| | |
| | | import org.opends.server.api.ImportTaskListener; |
| | | import org.opends.server.api.InvokableComponent; |
| | | import org.opends.server.api.KeyManagerProvider; |
| | | import org.opends.server.api.Extension; |
| | | import org.opends.server.api.MatchingRule; |
| | | import org.opends.server.api.MonitorProvider; |
| | | import org.opends.server.api.OrderingMatchingRule; |
| | |
| | | // The set of key manager providers registered with the server. |
| | | private ConcurrentHashMap<DN,KeyManagerProvider> keyManagerProviders; |
| | | |
| | | // The set of extensions registered with the server. |
| | | private ConcurrentHashMap<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 |
| | | // generator implementation. |
| | |
| | | // The key manager provider configuration manager for the Directory Server. |
| | | private KeyManagerProviderConfigManager keyManagerProviderConfigManager; |
| | | |
| | | // The extension configuration manager for the Directory Server. |
| | | private ExtensionConfigManager extensionConfigManager; |
| | | |
| | | // The set of connections that are currently established. |
| | | private LinkedHashSet<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 = |
| | |
| | | keyManagerProviderConfigManager.initializeKeyManagerProviders(); |
| | | |
| | | |
| | | // Initialize the extension. |
| | | extensionConfigManager = new ExtensionConfigManager(); |
| | | extensionConfigManager.initializeExtensions(); |
| | | |
| | | |
| | | // Initialize the trust manager provider. |
| | | trustManagerProviderConfigManager = |
| | | new TrustManagerProviderConfigManager(); |
| | |
| | | |
| | | |
| | | /** |
| | | * 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. |
| | | * |