org.apache.directory.server.configuration
Class ServerStartupConfiguration

java.lang.Object
  extended by org.apache.directory.server.core.configuration.Configuration
      extended by org.apache.directory.server.core.configuration.StartupConfiguration
          extended by org.apache.directory.server.configuration.ServerStartupConfiguration
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
MutableServerStartupConfiguration

public class ServerStartupConfiguration
extends StartupConfiguration

A StartupConfiguration that starts up ApacheDS with network layer support.

Version:
$Rev: 473656 $, $Date: 2006-11-11 07:39:58 +0100 (Sat, 11 Nov 2006) $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.directory.server.core.configuration.StartupConfiguration
MAX_SIZE_LIMIT_DEFAULT, MAX_THREADS_DEFAULT, MAX_TIME_LIMIT_DEFAULT
 
Fields inherited from class org.apache.directory.server.core.configuration.Configuration
DEFAULT_INSTANCE_ID, JNDI_KEY
 
Constructor Summary
protected ServerStartupConfiguration()
           
protected ServerStartupConfiguration(java.lang.String instanceId)
           
 
Method Summary
 java.util.Collection getExtendedOperationHandlers()
           
 int getLdapPort()
          Returns LDAP TCP/IP port number to listen to.
 java.io.File getLdapsCertificateFile()
          Returns the path of the X509 (or JKS) certificate file for LDAPS.
 java.lang.String getLdapsCertificatePassword()
          Returns the password which is used to load the the SunX509 certificate file (either PKCS12 or JKS format).
 int getLdapsPort()
          Returns LDAPS TCP/IP port number to listen to.
 java.io.File getLdifDirectory()
           
 java.util.List getLdifFilters()
           
 long getSynchPeriodMillis()
           
 boolean isEnableChangePassword()
          Returns true if Change Password support is enabled.
 boolean isEnableKerberos()
          Returns true if Kerberos support is enabled.
 boolean isEnableLdaps()
          Returns true if LDAPS is enabled.
 boolean isEnableNetworking()
          Returns true if networking (LDAP, LDAPS, and Kerberos) is enabled.
 boolean isEnableNtp()
          Returns true if Kerberos support is enabled.
protected  void setEnableChangePassword(boolean enableChangePassword)
          Sets whether to enable Change Password support or not.
protected  void setEnableKerberos(boolean enableKerberos)
          Sets whether to enable Kerberos support or not.
protected  void setEnableLdaps(boolean enableLdaps)
          Sets if LDAPS is enabled or not.
 void setEnableNetworking(boolean enableNetworking)
          Sets whether to enable networking (LDAP, LDAPS, and Kerberos) or not.
protected  void setEnableNtp(boolean enableNtp)
          Sets whether to enable Ntp support or not.
protected  void setExtendedOperationHandlers(java.util.Collection handlers)
           
protected  void setLdapPort(int ldapPort)
          Sets LDAP TCP/IP port number to listen to.
protected  void setLdapsCertificateFile(java.io.File ldapsCertificateFile)
          Sets the path of the SunX509 certificate file (either PKCS12 or JKS format) for LDAPS.
protected  void setLdapsCertificatePassword(java.lang.String ldapsCertificatePassword)
          Sets the password which is used to load the LDAPS certificate file.
protected  void setLdapsPort(int ldapsPort)
          Sets LDAPS TCP/IP port number to listen to.
protected  void setLdifDirectory(java.io.File ldifDirectory)
           
protected  void setLdifFilters(java.util.List filters)
           
protected  void setSynchPeriodMillis(long synchPeriodMillis)
           
 
Methods inherited from class org.apache.directory.server.core.configuration.StartupConfiguration
getAuthenticatorConfigurations, getBootstrapSchemas, getContextPartitionConfigurations, getInterceptorConfigurations, getMaxSizeLimit, getMaxThreads, getMaxTimeLimit, getSystemPartitionConfiguration, getTestEntries, getWorkingDirectory, isAccessControlEnabled, isAllowAnonymousAccess, isDenormalizeOpAttrsEnabled, isExitVmOnShutdown, isShutdownHookEnabled, setAccessControlEnabled, setAllowAnonymousAccess, setAuthenticatorConfigurations, setBootstrapSchemas, setContextPartitionConfigurations, setDenormalizeOpAttrsEnabled, setExitVmOnShutdown, setInterceptorConfigurations, setMaxSizeLimit, setMaxThreads, setMaxTimeLimit, setShutdownHookEnabled, setSystemPartitionConfiguration, setTestEntries, setWorkingDirectory, validate
 
Methods inherited from class org.apache.directory.server.core.configuration.Configuration
clone, getInstanceId, setInstanceId, toConfiguration, toJndiEnvironment
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerStartupConfiguration

protected ServerStartupConfiguration()

ServerStartupConfiguration

protected ServerStartupConfiguration(java.lang.String instanceId)
Method Detail

isEnableNetworking

public boolean isEnableNetworking()
Returns true if networking (LDAP, LDAPS, and Kerberos) is enabled.


setEnableNetworking

public void setEnableNetworking(boolean enableNetworking)
Sets whether to enable networking (LDAP, LDAPS, and Kerberos) or not.


isEnableKerberos

public boolean isEnableKerberos()
Returns true if Kerberos support is enabled.


isEnableChangePassword

public boolean isEnableChangePassword()
Returns true if Change Password support is enabled.


isEnableNtp

public boolean isEnableNtp()
Returns true if Kerberos support is enabled.


setEnableKerberos

protected void setEnableKerberos(boolean enableKerberos)
Sets whether to enable Kerberos support or not.


setEnableChangePassword

protected void setEnableChangePassword(boolean enableChangePassword)
Sets whether to enable Change Password support or not.


setEnableNtp

protected void setEnableNtp(boolean enableNtp)
Sets whether to enable Ntp support or not.


getLdapPort

public int getLdapPort()
Returns LDAP TCP/IP port number to listen to.


setLdapPort

protected void setLdapPort(int ldapPort)
Sets LDAP TCP/IP port number to listen to.


getLdapsPort

public int getLdapsPort()
Returns LDAPS TCP/IP port number to listen to.


setLdapsPort

protected void setLdapsPort(int ldapsPort)
Sets LDAPS TCP/IP port number to listen to.


isEnableLdaps

public boolean isEnableLdaps()
Returns true if LDAPS is enabled.


setEnableLdaps

protected void setEnableLdaps(boolean enableLdaps)
Sets if LDAPS is enabled or not.


getLdapsCertificateFile

public java.io.File getLdapsCertificateFile()
Returns the path of the X509 (or JKS) certificate file for LDAPS. The default value is "<WORKDIR>/certificates/server.cert".


setLdapsCertificateFile

protected void setLdapsCertificateFile(java.io.File ldapsCertificateFile)
Sets the path of the SunX509 certificate file (either PKCS12 or JKS format) for LDAPS.


getLdapsCertificatePassword

public java.lang.String getLdapsCertificatePassword()
Returns the password which is used to load the the SunX509 certificate file (either PKCS12 or JKS format). The default value is "changeit". This is the same value with what Apache Jakarta Tomcat uses by default.


setLdapsCertificatePassword

protected void setLdapsCertificatePassword(java.lang.String ldapsCertificatePassword)
Sets the password which is used to load the LDAPS certificate file.


getExtendedOperationHandlers

public java.util.Collection getExtendedOperationHandlers()

setExtendedOperationHandlers

protected void setExtendedOperationHandlers(java.util.Collection handlers)

getLdifDirectory

public java.io.File getLdifDirectory()

setLdifDirectory

protected void setLdifDirectory(java.io.File ldifDirectory)

getLdifFilters

public java.util.List getLdifFilters()

setLdifFilters

protected void setLdifFilters(java.util.List filters)

setSynchPeriodMillis

protected void setSynchPeriodMillis(long synchPeriodMillis)

getSynchPeriodMillis

public long getSynchPeriodMillis()


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.