Class LDAPEmbeddedServer

    • Field Detail

      • PROPERTY_SET_CONFIDENTIALITY_REQUIRED

        public static final String PROPERTY_SET_CONFIDENTIALITY_REQUIRED
        See Also:
        Constant Field Values
      • defaultProperties

        protected Properties defaultProperties
      • baseDN

        protected String baseDN
      • bindHost

        protected String bindHost
      • bindPort

        protected int bindPort
      • bindLdapsPort

        protected int bindLdapsPort
      • ldifFile

        protected String ldifFile
      • ldapSaslPrincipal

        protected String ldapSaslPrincipal
      • directoryServiceFactory

        protected String directoryServiceFactory
      • enableAccessControl

        protected boolean enableAccessControl
      • enableAnonymousAccess

        protected boolean enableAnonymousAccess
      • enableSSL

        protected boolean enableSSL
      • enableStartTLS

        protected boolean enableStartTLS
      • setConfidentialityRequired

        protected boolean setConfidentialityRequired
      • keystoreFile

        protected String keystoreFile
      • certPassword

        protected String certPassword
      • directoryService

        protected org.apache.directory.server.core.api.DirectoryService directoryService
      • ldapServer

        protected org.apache.directory.server.ldap.LdapServer ldapServer
    • Constructor Detail

      • LDAPEmbeddedServer

        public LDAPEmbeddedServer​(Properties defaultProperties)
    • Method Detail

      • getBindPort

        public int getBindPort()
      • getBindLdapsPort

        public int getBindLdapsPort()
      • readProperty

        protected String readProperty​(String propertyName,
                                      String defaultValue)
      • createDirectoryService

        protected org.apache.directory.server.core.api.DirectoryService createDirectoryService()
                                                                                        throws Exception
        Throws:
        Exception
      • createLdapServer

        protected org.apache.directory.server.ldap.LdapServer createLdapServer()
      • stopLdapServer

        protected void stopLdapServer()
      • shutdownDirectoryService

        protected void shutdownDirectoryService()
                                         throws Exception
        Throws:
        Exception