@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(value={LdapProperties.class,EmbeddedLdapProperties.class})
@AutoConfigureBefore(value=LdapAutoConfiguration.class)
@ConditionalOnClass(value=com.unboundid.ldap.listener.InMemoryDirectoryServer.class)
@Conditional(value=org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration.EmbeddedLdapCondition.class)
public class EmbeddedLdapAutoConfiguration
extends java.lang.Object
Auto-configuration for Embedded LDAP.| Constructor and Description |
|---|
EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.unboundid.ldap.listener.InMemoryDirectoryServer |
directoryServer(org.springframework.context.ApplicationContext applicationContext) |
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties)
@Bean
public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer(org.springframework.context.ApplicationContext applicationContext)
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException@PreDestroy public void close()