Class UnboundIdContainer

java.lang.Object
org.springframework.security.ldap.server.UnboundIdContainer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, EmbeddedLdapServerContainer

public class UnboundIdContainer extends Object implements EmbeddedLdapServerContainer, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.Lifecycle, org.springframework.context.ApplicationContextAware
  • Constructor Details

    • UnboundIdContainer

      public UnboundIdContainer(String defaultPartitionSuffix, String ldif)
  • Method Details

    • getPort

      public int getPort()
      Description copied from interface: EmbeddedLdapServerContainer
      Returns the embedded LDAP server port.
      Specified by:
      getPort in interface EmbeddedLdapServerContainer
      Returns:
      the embedded LDAP server port
    • setPort

      public void setPort(int port)
      Description copied from interface: EmbeddedLdapServerContainer
      The embedded LDAP server port to connect to. Supplying 0 as the port indicates that a random available port should be selected.
      Specified by:
      setPort in interface EmbeddedLdapServerContainer
      Parameters:
      port - the port to connect to
    • destroy

      public void destroy()
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • setApplicationContext

      public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle