@Extensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPControl extends java.lang.Object implements java.io.Serializable
Control
class should
be used instead.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MANAGEDSAIT
The OID for the ManageDsaIT request control.
|
static java.lang.String |
PWEXPIRED
The OID for the password expired control.
|
static java.lang.String |
PWEXPIRING
The OID for the password expiring control.
|
Constructor and Description |
---|
LDAPControl(Control control)
Creates a new LDAP control from the provided control.
|
LDAPControl(java.lang.String id,
boolean critical,
byte[] vals)
Creates a new LDAP control with the specified information.
|
Modifier and Type | Method and Description |
---|---|
LDAPControl |
duplicate()
Creates a duplicate of this control.
|
java.lang.String |
getID()
Retrieves the OID for this control.
|
byte[] |
getValue()
Retrieves the value for this control, if available.
|
boolean |
isCritical()
Indicates whether this control is marked critical.
|
Control |
toControl()
Converts this LDAP control to a
Control object. |
static Control[] |
toControls(LDAPControl[] ldapControls)
Converts the provided array of controls to an array of LDAP controls.
|
static LDAPControl[] |
toLDAPControls(Control[] controls)
Converts the provided array of LDAP controls to an array of controls.
|
java.lang.String |
toString()
Retrieves a string representation of this control.
|
@NotNull public static final java.lang.String MANAGEDSAIT
@NotNull public static final java.lang.String PWEXPIRED
@NotNull public static final java.lang.String PWEXPIRING
public LDAPControl(@NotNull Control control)
control
- The control to use to create this control.public LDAPControl(@NotNull java.lang.String id, boolean critical, @Nullable byte[] vals)
id
- The OID for the control.critical
- Indicates whether the control should be marked critical.vals
- The encoded value for the control.@NotNull public java.lang.String getID()
public boolean isCritical()
true
if this control is marked critical, or false
if not.@Nullable public byte[] getValue()
null
if there is none.@NotNull public final Control toControl()
Control
object.Control
object for this LDAP control.@Nullable public static Control[] toControls(@Nullable LDAPControl[] ldapControls)
ldapControls
- The LDAP controls to be converted.@Nullable public static LDAPControl[] toLDAPControls(@Nullable Control[] controls)
controls
- The controls to be converted.@NotNull public LDAPControl duplicate()