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.
|
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 LdapException
connection
- The connection to bind with the configuration credentials.LdapException
- If the bind fails.LdapConnection configureConnection(LdapConnection connection)
connection
- The connection to configureLdapApiService getLdapApiService()
LdapConnection newLdapConnection() throws LdapException
LdapException
- If the new connection couldn't be establishedLdapConnection newUnboundLdapConnection()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.