@Configuration @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 Object
Auto-configuration
for Embedded LDAP.Constructor and Description |
---|
EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties,
LdapProperties properties,
org.springframework.context.ConfigurableApplicationContext applicationContext,
org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
com.unboundid.ldap.listener.InMemoryDirectoryServer |
directoryServer() |
org.springframework.ldap.core.support.LdapContextSource |
ldapContextSource() |
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.core.env.Environment environment)
@Bean @DependsOn(value="directoryServer") @ConditionalOnMissingBean public org.springframework.ldap.core.support.LdapContextSource ldapContextSource()
@Bean public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer() throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException
@PreDestroy public void close()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.