Control (Java SE 15 & JDK 15) (original) (raw)

All Superinterfaces:

[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")

All Known Implementing Classes:

[BasicControl](BasicControl.html "class in javax.naming.ldap"), [ManageReferralControl](ManageReferralControl.html "class in javax.naming.ldap"), [PagedResultsControl](PagedResultsControl.html "class in javax.naming.ldap"), [PagedResultsResponseControl](PagedResultsResponseControl.html "class in javax.naming.ldap"), [SortControl](SortControl.html "class in javax.naming.ldap"), [SortResponseControl](SortResponseControl.html "class in javax.naming.ldap")


public interface Control extends Serializable

This interface represents an LDAPv3 control as defined inRFC 2251.

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.

Since:

1.3

See Also:

ControlFactory

Fields

Modifier and Type Field Description
static boolean CRITICAL Indicates a critical control.
static 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.