Package org.ldaptive.provider.unboundid
Class UnboundIDConnectionFactory
- java.lang.Object
-
- org.ldaptive.provider.AbstractProviderConnectionFactory<UnboundIDProviderConfig>
-
- org.ldaptive.provider.unboundid.UnboundIDConnectionFactory
-
- All Implemented Interfaces:
ProviderConnectionFactory<UnboundIDProviderConfig>
public class UnboundIDConnectionFactory extends AbstractProviderConnectionFactory<UnboundIDProviderConfig>
Creates ldap connections using the UnboundID LDAPConnection class.
-
-
Field Summary
Fields Modifier and Type Field Description private com.unboundid.ldap.sdk.LDAPConnectionOptions
ldapOptions
UnboundID connection options.private SSLSocketFactory
socketFactory
Socket factory to use for LDAPS connections.-
Fields inherited from class org.ldaptive.provider.AbstractProviderConnectionFactory
logger
-
-
Constructor Summary
Constructors Constructor Description UnboundIDConnectionFactory(String url, ConnectionStrategy strategy, UnboundIDProviderConfig config, SSLSocketFactory factory, com.unboundid.ldap.sdk.LDAPConnectionOptions options)
Creates a new Unbound ID connection factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UnboundIDConnection
createInternal(String url)
Create the provider connection and prepare the connection for use.-
Methods inherited from class org.ldaptive.provider.AbstractProviderConnectionFactory
create, getMetadata, getProviderConfig, toString
-
-
-
-
Field Detail
-
socketFactory
private final SSLSocketFactory socketFactory
Socket factory to use for LDAPS connections.
-
ldapOptions
private final com.unboundid.ldap.sdk.LDAPConnectionOptions ldapOptions
UnboundID connection options.
-
-
Constructor Detail
-
UnboundIDConnectionFactory
public UnboundIDConnectionFactory(String url, ConnectionStrategy strategy, UnboundIDProviderConfig config, SSLSocketFactory factory, com.unboundid.ldap.sdk.LDAPConnectionOptions options)
Creates a new Unbound ID connection factory.- Parameters:
url
- of the ldap to connect tostrategy
- connection strategyconfig
- provider configurationfactory
- SSL socket factory to use for LDAP and LDAPSoptions
- connection options
-
-
Method Detail
-
createInternal
protected UnboundIDConnection createInternal(String url) throws LdapException
Description copied from class:AbstractProviderConnectionFactory
Create the provider connection and prepare the connection for use.- Specified by:
createInternal
in classAbstractProviderConnectionFactory<UnboundIDProviderConfig>
- Parameters:
url
- to connect to- Returns:
- provider connection
- Throws:
LdapException
- if a connection cannot be established
-
-