Class EmbeddedLdapAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration
@Configuration @EnableConfigurationProperties({LdapProperties.class,EmbeddedLdapProperties.class}) @AutoConfigureBefore(LdapAutoConfiguration.class) @ConditionalOnClass(com.unboundid.ldap.listener.InMemoryDirectoryServer.class) @Conditional(org.springframework.boot.autoconfigure.ldap.embedded.EmbeddedLdapAutoConfiguration.EmbeddedLdapCondition.class) public class EmbeddedLdapAutoConfiguration extends Object
Auto-configuration
for Embedded LDAP.- Since:
- 1.5.0
Constructor Summary
Constructors Constructor Description EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.core.env.Environment environment)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.unboundid.ldap.listener.InMemoryDirectoryServer
directoryServer()
org.springframework.ldap.core.support.LdapContextSource
ldapContextSource()
Constructor Detail
EmbeddedLdapAutoConfiguration
public EmbeddedLdapAutoConfiguration(EmbeddedLdapProperties embeddedProperties, LdapProperties properties, org.springframework.context.ConfigurableApplicationContext applicationContext, org.springframework.core.env.Environment environment)
Method Detail
ldapContextSource
@Bean @DependsOn("directoryServer") @ConditionalOnMissingBean public org.springframework.ldap.core.support.LdapContextSource ldapContextSource()
directoryServer
@Bean public com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer() throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
close
@PreDestroy public void close()