Class LDAPConnectionPoolFactory

java.lang.Object
com.nimbusds.common.ldap.LDAPConnectionPoolFactory

public class LDAPConnectionPoolFactory extends Object
Factory for establishing LDAP connection pools to a directory server.
  • Constructor Details

  • Method Details

    • createLDAPConnectionPool

      public com.unboundid.ldap.sdk.LDAPConnectionPool createLDAPConnectionPool() throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
      Creates a new LDAP connection pool. No initial connections are established, to prevent connect exceptions if the backend is offline at the time the pool is created.
      Returns:
      The LDAP connection pool.
      Throws:
      KeyStoreException - If the key store could not be unlocked (for SSL/StartTLS connections).
      GeneralSecurityException - On a general security exception (for SSL/StartTLS connections).
      com.unboundid.ldap.sdk.LDAPException - If an LDAP exception is encountered (during creation of the initial pooled LDAP connections).