public class LDAPConnectionPoolFactory extends Object
Constructor | Description |
---|---|
LDAPConnectionPoolFactory(LDAPServerConnectionPoolDetails ldapServer,
CustomTrustStoreConfiguration customTrustStore,
CustomKeyStoreConfiguration customKeyStore,
DirectoryUser dirUser) |
Creates a LDAP connection pool factory.
|
Modifier and Type | Method | Description |
---|---|---|
com.unboundid.ldap.sdk.LDAPConnectionPool |
createLDAPConnectionPool() |
Creates a new LDAP connection pool.
|
public LDAPConnectionPoolFactory(LDAPServerConnectionPoolDetails ldapServer, CustomTrustStoreConfiguration customTrustStore, CustomKeyStoreConfiguration customKeyStore, DirectoryUser dirUser)
ldapServer
- The LDAP server connect details. Must
specify a URL and must not be null
.customTrustStore
- The custom trust store configuration. Must
not be null
.customKeyStore
- The custom key store configuration. Must not
be null
.dirUser
- The directory user to bind to for each
LDAP connection. If null
connections
will be unauthenticated.public com.unboundid.ldap.sdk.LDAPConnectionPool createLDAPConnectionPool() throws GeneralSecurityException, com.unboundid.ldap.sdk.LDAPException
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).Copyright © 2018 Connect2id. All rights reserved.