Class LdapServer

java.lang.Object
java.lang.Thread
io.milton.ldap.LdapServer
All Implemented Interfaces:
Runnable

public class LdapServer extends Thread
LDAP server, handle LDAP directory requests.
  • Field Details

    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      Default LDAP port
      See Also:
    • nosslFlag

      protected boolean nosslFlag
  • Constructor Details

  • Method Details

    • isNosslFlag

      public boolean isNosslFlag()
    • setNosslFlag

      public void setNosslFlag(boolean nosslFlag)
    • getBindAddress

      public String getBindAddress()
    • setBindAddress

      public void setBindAddress(String bindAddress)
    • setPort

      public void setPort(int port)
    • getProtocolName

      public String getProtocolName()
    • createConnectionHandler

      public LdapConnection createConnectionHandler(Socket clientSocket)
    • start

      public void start()
      Overrides:
      start in class Thread
    • bind

      public void bind() throws Exception
      Bind server socket on defined port.
      Throws:
      DavMailException - unable to create server socket
      Exception
    • run

      public void run()
      The body of the server thread. Loop forever, listening for and accepting connections from clients. For each connection, create a Connection object to handle communication through the new Socket.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • close

      public void close()
      Close server socket
    • getPort

      public int getPort()
      Server socket TCP port
      Returns:
      port
    • getKeystorePass

      public String getKeystorePass()
    • setKeystorePass

      public void setKeystorePass(String keystorePass)
    • getKeystoreType

      public String getKeystoreType()
    • setKeystoreType

      public void setKeystoreType(String keystoreType)
    • getKeystoreFile

      public File getKeystoreFile()
    • setKeystoreFile

      public void setKeystoreFile(File keystoreFile)
    • isAllowRemote

      public boolean isAllowRemote()
    • setAllowRemote

      public void setAllowRemote(boolean allowRemote)