Interface LDAPProvider
-
public interface LDAPProvider
Represents a provider interface for applications that want to send LDAP requests.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LDAPMessageFactory
getMessageFactory()
Returns an LDAP message factory implementation to be used to create LDAP objects.LDAPRequestActivity
sendRequest(LDAPRequest request)
Creates a new LDAP request activity in the SLEE and performs the LDAP operation specified by the given request.
-
-
-
Method Detail
-
getMessageFactory
LDAPMessageFactory getMessageFactory()
Returns an LDAP message factory implementation to be used to create LDAP objects.- Returns:
- an LDAP message factory implementation.
- See Also:
LDAPMessageFactory
-
sendRequest
LDAPRequestActivity sendRequest(LDAPRequest request) throws LDAPConnectionException, LDAPException
Creates a new LDAP request activity in the SLEE and performs the LDAP operation specified by the given request. The SBB must attach to the activity to receive the LDAP result event.Note: In order to send an
LDAPBindRequest
(the LDAP "bind queries" feature) to test the validity of passed credentials binding to the directory, the bind connection pool must be enabled using the resource adaptor configuration propertiesBindMinConnections
andBindMaxConnections
. Otherwise an LDAPConnectionException will be thrown.- Parameters:
request
- the request to be used for the LDAP operation. It must not be null.- Returns:
- the new LDAP request activity created or null.
- Throws:
LDAPConnectionException
- when the LDAP client cannot connect with the LDAP server.LDAPException
- if failed to complete the specified LDAP operation.- See Also:
LDAPRequestActivity
,LDAPResultEvent
-
-