Package com.nimbusds.common.ldap
Class PresetLDAPConnectionFactory
java.lang.Object
com.nimbusds.common.ldap.LDAPConnectionFactory
com.nimbusds.common.ldap.PresetLDAPConnectionFactory
Factory for establishing LDAP connections to a preset directory server.
-
Constructor Summary
ConstructorDescriptionPresetLDAPConnectionFactory
(LDAPServerDetails ldapServer, CustomTrustStoreConfiguration customTrustStore, CustomKeyStoreConfiguration customKeyStore) Creates a new preset LDAP connection factory. -
Method Summary
Modifier and TypeMethodDescriptioncom.unboundid.ldap.sdk.LDAPConnection
Creates a new LDAP connection to the preset directory server.Gets the LDAP server details.Methods inherited from class com.nimbusds.common.ldap.LDAPConnectionFactory
createLDAPConnection, createLDAPConnection, getCustomKeyStoreConfiguration, getCustomTrustStoreConfiguration, getSocketFactory, initSecureConnectionContext
-
Constructor Details
-
PresetLDAPConnectionFactory
public PresetLDAPConnectionFactory(LDAPServerDetails ldapServer, CustomTrustStoreConfiguration customTrustStore, CustomKeyStoreConfiguration customKeyStore) throws LDAPConnectionException Creates a new preset LDAP connection factory.- Parameters:
ldapServer
- The LDAP server details. Must not benull
.customTrustStore
- The custom trust store configuration. Must not benull
.customKeyStore
- The custom key store configuration. Must not benull
.- Throws:
LDAPConnectionException
- If a SSL socket factory is required and couldn't be established.
-
-
Method Details
-
getLDAPServerDetails
Gets the LDAP server details.- Returns:
- The LDAP server details.
-
createLDAPConnection
Creates a new LDAP connection to the preset directory server.- Returns:
- A new established unauthenticated LDAP connection ready for use.
- Throws:
LDAPConnectionException
- If a new LDAP connection could not be created.
-