public class PresetLDAPConnectionFactory extends LDAPConnectionFactory
Constructor and Description |
---|
PresetLDAPConnectionFactory(LDAPServerDetails ldapServer,
CustomTrustStoreConfiguration customTrustStore,
CustomKeyStoreConfiguration customKeyStore)
Creates a new preset LDAP connection factory.
|
Modifier and Type | Method and Description |
---|---|
com.unboundid.ldap.sdk.LDAPConnection |
createLDAPConnection()
Creates a new LDAP connection to the preset directory server.
|
LDAPServerDetails |
getLDAPServerDetails()
Gets the LDAP server details.
|
createLDAPConnection, createLDAPConnection, getCustomKeyStoreConfiguration, getCustomTrustStoreConfiguration, getSocketFactory, initSecureConnectionContext
public PresetLDAPConnectionFactory(LDAPServerDetails ldapServer, CustomTrustStoreConfiguration customTrustStore, CustomKeyStoreConfiguration customKeyStore) throws LDAPConnectionException
ldapServer
- The LDAP server details. Must not be
null
.customTrustStore
- The custom trust store configuration. Must
not be null
.customKeyStore
- The custom key store configuration. Must not
be null
.LDAPConnectionException
- If a SSL socket factory is required
and couldn't be established.public LDAPServerDetails getLDAPServerDetails()
public com.unboundid.ldap.sdk.LDAPConnection createLDAPConnection() throws LDAPConnectionException
LDAPConnectionException
- If a new LDAP connection could not
be created.Copyright © 2014 Connect2id. All Rights Reserved.