The Lightweight Directory Access Protocol (LDAP) Access Service enables an application to communicate with an LDAP-compliant directory service or LDAP framework. This service provides support for LDAPv2 and LDAPv3, via the Java™ Naming and Directory Interface (JNDI).
The LDAPService class provides the main functionality of this service. It is subclassed from the Service class, and hence provides support for asynchronous access and event handling. Event handling is an LDAPv3 feature. Further support is provided by the classes LDAPRequest, LDAPResponse, and their subclasses: for each major piece of functionality provided by JNDI, there is a subclass of LDAPRequest that contains the data needed to process that piece of functionality; and for every LDAPRequest, there is a corresponding LDAPResponse that encapsulates the data that is returned upon completion of a request.
The following diagram shows the relationships between the entities involved in the use of the LDAP Access Service: