public final class AdministrationConnector extends Object implements ConfigurationChangeListener<AdministrationConnectorCfg>
Modifier and Type | Field and Description |
---|---|
static int |
ADMIN_CERT_VALIDITY
Validity (in days) of the generated certificate.
|
static int |
DEFAULT_ADMINISTRATION_CONNECTOR_PORT
Default Administration Connector port.
|
Constructor and Description |
---|
AdministrationConnector(ServerContext serverContext)
Creates an instance of the administration connector.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(AdministrationConnectorCfg configuration)
Applies the configuration changes to this change listener.
|
static void |
createSelfSignedCertificateIfNeeded(ServerContext serverContext)
Creates a self-signed JKS certificate if needed.
|
LDAPConnectionHandler |
getConnectionHandler()
Retrieves the connection handler linked to this administration connector.
|
void |
initializeAdministrationConnector(AdministrationConnectorCfg configuration)
Initializes this administration connector provider based on the
information in the provided administration connector
configuration.
|
boolean |
isConfigurationChangeAcceptable(AdministrationConnectorCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
public static final int DEFAULT_ADMINISTRATION_CONNECTOR_PORT
public static final int ADMIN_CERT_VALIDITY
public AdministrationConnector(ServerContext serverContext)
serverContext
- The server context.public void initializeAdministrationConnector(AdministrationConnectorCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
configuration
- The connection handler configuration that contains the
information to use to initialize this connection
handler.org.forgerock.opendj.config.server.ConfigException
- If an unrecoverable problem arises in the process of
performing the initialization as a result of the server
configuration.InitializationException
- If a problem occurs during initialization that is not
related to the server configuration.public LDAPConnectionHandler getConnectionHandler()
public boolean isConfigurationChangeAcceptable(AdministrationConnectorCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<AdministrationConnectorCfg>
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 org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(AdministrationConnectorCfg configuration)
applyConfigurationChange
in interface ConfigurationChangeListener<AdministrationConnectorCfg>
configuration
- The new configuration containing the changes.public static void createSelfSignedCertificateIfNeeded(ServerContext serverContext) throws InitializationException
serverContext
- The server context.InitializationException
- If an unexpected error occurred whilst trying to create the
certificate.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.