Interface TransportProvider


  • public interface TransportProvider
    Interface for ldap socket providers, which provide implementation for LdapSocket class, using a specific transport.

    A ldap socket provider must be declared in the provider-configuration file META-INF/services/org.forgerock.opendj.ldap.spi.LdapSocketProvider in order to allow automatic loading of the implementation classes using the java.util.ServiceLoader facility.

    • Method Detail

      • getName

        String getName()
        Returns the name of this transport provider.
        Returns:
        The name of this transport provider.
      • newLdapSocketConnector

        LdapSocketConnector newLdapSocketConnector​(String host,
                                                   int port,
                                                   Options options)
        Returns an implementation of LdapSocketConnector. The address will be resolved each time a new connection is returned.
        Parameters:
        host - The hostname of the Directory Server to connect to.
        port - The port number of the Directory Server to connect to.
        options - The LDAP options to use when creating connections.
        Returns:
        An implementation of LdapSocketConnector