| Package | Description | 
|---|---|
| javax.naming.ldap | Provides support for LDAPv3 extended operations and controls. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicControlThis class provides a basic implementation of the Control
 interface. | 
| class  | ManageReferralControlRequests that referral and other special LDAP objects be manipulated
 as normal LDAP objects. | 
| class  | PagedResultsControlRequests that the results of a search operation be returned by the LDAP
 server in batches of a specified size. | 
| class  | PagedResultsResponseControlIndicates the end of a batch of search results. | 
| class  | SortControlRequests that the results of a search operation be sorted by the LDAP server
 before being returned. | 
| class  | SortResponseControlIndicates whether the requested sort of search results was successful or not. | 
| Modifier and Type | Method and Description | 
|---|---|
| Control[] | InitialLdapContext. getConnectControls() | 
| Control[] | LdapContext. getConnectControls()Retrieves the connection request controls in effect for this context. | 
| abstract Control | ControlFactory. getControlInstance(Control ctl)Creates a control using this control factory. | 
| static Control | ControlFactory. getControlInstance(Control ctl,
                  Context ctx,
                  Hashtable<?,?> env)Creates a control using known control factories. | 
| Control[] | HasControls. getControls()Retrieves an array of Controls from the object that
 implements this interface. | 
| Control[] | InitialLdapContext. getRequestControls() | 
| Control[] | LdapContext. getRequestControls()Retrieves the request controls in effect for this context. | 
| Control[] | InitialLdapContext. getResponseControls() | 
| Control[] | LdapContext. getResponseControls()Retrieves the response controls produced as a result of the last
 method invoked on this context. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Control | ControlFactory. getControlInstance(Control ctl)Creates a control using this control factory. | 
| static Control | ControlFactory. getControlInstance(Control ctl,
                  Context ctx,
                  Hashtable<?,?> env)Creates a control using known control factories. | 
| abstract Context | LdapReferralException. getReferralContext(Hashtable<?,?> env,
                  Control[] reqCtls)Retrieves the context at which to continue the method using
 request controls and environment properties. | 
| LdapContext | InitialLdapContext. newInstance(Control[] reqCtls) | 
| LdapContext | LdapContext. newInstance(Control[] requestControls)Creates a new instance of this context initialized using request controls. | 
| void | InitialLdapContext. reconnect(Control[] connCtls) | 
| void | LdapContext. reconnect(Control[] connCtls)Reconnects to the LDAP server using the supplied controls and
 this context's environment. | 
| void | InitialLdapContext. setRequestControls(Control[] requestControls) | 
| void | LdapContext. setRequestControls(Control[] requestControls)Sets the request controls for methods subsequently
 invoked on this context. | 
| Constructor and Description | 
|---|
| InitialLdapContext(Hashtable<?,?> environment,
                  Control[] connCtls)Constructs an initial context
 using environment properties and connection request controls. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.