public class LDAPEmbeddedServer extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseDN |
protected String |
bindHost |
protected int |
bindLdapsPort |
protected int |
bindPort |
protected String |
certPassword |
static String |
DEFAULT_DSF |
protected Properties |
defaultProperties |
protected org.apache.directory.server.core.api.DirectoryService |
directoryService |
protected String |
directoryServiceFactory |
static String |
DSF_FILE |
static String |
DSF_INMEMORY |
protected boolean |
enableSSL |
protected String |
keystoreFile |
protected String |
ldapSaslPrincipal |
protected org.apache.directory.server.ldap.LdapServer |
ldapServer |
protected String |
ldifFile |
static String |
PROPERTY_BASE_DN |
static String |
PROPERTY_BIND_HOST |
static String |
PROPERTY_BIND_LDAPS_PORT |
static String |
PROPERTY_BIND_PORT |
static String |
PROPERTY_DSF |
static String |
PROPERTY_LDIF_FILE |
static String |
PROPERTY_SASL_PRINCIPAL |
Constructor and Description |
---|
LDAPEmbeddedServer(Properties defaultProperties) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.directory.server.core.api.DirectoryService |
createDirectoryService() |
protected org.apache.directory.server.ldap.LdapServer |
createLdapServer() |
static void |
execute(String[] args,
Properties defaultProperties) |
void |
init() |
static void |
main(String[] args) |
protected String |
readProperty(String propertyName,
String defaultValue) |
protected void |
shutdownDirectoryService() |
void |
start() |
void |
stop() |
protected void |
stopLdapServer() |
public static final String PROPERTY_BASE_DN
public static final String PROPERTY_BIND_HOST
public static final String PROPERTY_BIND_PORT
public static final String PROPERTY_BIND_LDAPS_PORT
public static final String PROPERTY_LDIF_FILE
public static final String PROPERTY_SASL_PRINCIPAL
public static final String PROPERTY_DSF
public static final String DSF_INMEMORY
public static final String DSF_FILE
public static final String DEFAULT_DSF
protected Properties defaultProperties
protected String baseDN
protected String bindHost
protected int bindPort
protected int bindLdapsPort
protected String ldifFile
protected String ldapSaslPrincipal
protected String directoryServiceFactory
protected boolean enableSSL
protected String keystoreFile
protected String certPassword
protected org.apache.directory.server.core.api.DirectoryService directoryService
protected org.apache.directory.server.ldap.LdapServer ldapServer
public LDAPEmbeddedServer(Properties defaultProperties)
public static void execute(String[] args, Properties defaultProperties) throws Exception
Exception
protected org.apache.directory.server.core.api.DirectoryService createDirectoryService() throws Exception
Exception
protected org.apache.directory.server.ldap.LdapServer createLdapServer()
protected void stopLdapServer()
Copyright © 2021 JBoss by Red Hat. All rights reserved.