public interface LdapConnectionFactory
LdapConnection objects using the provided
LdapConnectionConfig.| Modifier and Type | Method and Description |
|---|---|
LdapConnection |
bindConnection(LdapConnection connection)
Issues a bind request on the supplied connection using the name and
credentials from the LdapConnectionConfg supplied to the constructor.
|
LdapConnection |
configureConnection(LdapConnection connection)
Applies the following configuration settings from the
LdapConnectionConfig to the supplied connection:
timeOut
binaryAttributeDetector
This method is called by newLdapConnection, so there is no need to call
this on a newly created connection.
|
org.apache.directory.api.ldap.codec.api.LdapApiService |
getLdapApiService()
Returns the LdapApiService instance used by this factory.
|
LdapConnection |
newLdapConnection()
Returns a newly created, configured, and authenticated connection.
|
LdapConnection |
newUnboundLdapConnection()
Returns a newly created connection, that has not been bound (bind) that
otherwise respects LdapConnectionConfig supplied to the constructor.
|
LdapConnection bindConnection(LdapConnection connection) throws org.apache.directory.api.ldap.model.exception.LdapException
connection - The connection to bind with the configuration credentials.org.apache.directory.api.ldap.model.exception.LdapException - If the bind fails.LdapConnection configureConnection(LdapConnection connection)
connection - The connection to configureorg.apache.directory.api.ldap.codec.api.LdapApiService getLdapApiService()
LdapConnection newLdapConnection() throws org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.exception.LdapException - If the new connection couldn't be establishedLdapConnection newUnboundLdapConnection()
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.