Serializable
BasicControl
, ManageReferralControl
, PagedResultsControl
, PagedResultsResponseControl
, SortControl
, SortResponseControl
public interface Control extends Serializable
The LDAPv3 protocol uses controls to send and receive additional data to affect the behavior of predefined operations. Controls can be sent along with any LDAP operation to the server. These are referred to as request controls. For example, a "sort" control can be sent with an LDAP search operation to request that the results be returned in a particular order. Solicited and unsolicited controls can also be returned with responses from the server. Such controls are referred to as response controls. For example, an LDAP server might define a special control to return change notifications.
This interface is used to represent both request and response controls.
Modifier and Type | Field | Description |
---|---|---|
static final boolean |
CRITICAL |
Indicates a critical control. |
static final boolean |
NONCRITICAL |
Indicates a non-critical control. |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getEncodedValue() |
Retrieves the ASN.1 BER encoded value of the LDAP control. |
String |
getID() |
Retrieves the object identifier assigned for the LDAP control. |
boolean |
isCritical() |
Determines the criticality of the LDAP control. |
static final boolean CRITICAL
true
.static final boolean NONCRITICAL
false
.String getID()
boolean isCritical()
OperationNotSupportedException
will be thrown.byte[] getEncodedValue()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.naming/javax/naming/ldap/Control.html