Interface LDAPSocketFactory

  • All Known Implementing Classes:
    JavaToLDAPSocketFactory

    @Extensible
    @ThreadSafety(level=INTERFACE_THREADSAFE)
    public interface LDAPSocketFactory
    This interface defines a method that can be used to construct the socket to use when communicating with the directory server.

    This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the standard Java socket factory may be used directly without the need for the LDAPSocketFactory interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.net.Socket makeSocket​(java.lang.String host, int port)
      Creates a socket to use when connecting to the directory sever.
    • Method Detail

      • makeSocket

        java.net.Socket makeSocket​(java.lang.String host,
                                   int port)
                            throws LDAPException
        Creates a socket to use when connecting to the directory sever.
        Parameters:
        host - The address of the server to which the socket should be connected.
        port - The port of the server to which the socket should be connected.
        Returns:
        The connected socket to use to communicate with the directory server.
        Throws:
        LDAPException - If a problem occurs while establishing the connection.