|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.unboundid.ldap.sdk.migrate.ldapjdk.LDAPControl
@Extensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPControl
This class provides a data structure that holds information about an LDAP
control.
This class is primarily intended to be used in the process of updating
applications which use the Netscape Directory SDK for Java to switch to or
coexist with the UnboundID LDAP SDK for Java. For applications not written
using the Netscape Directory SDK for Java, the Control
class should
be used instead.
Field Summary | |
---|---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MANAGEDSAIT
public static final java.lang.String PWEXPIRED
public static final java.lang.String PWEXPIRING
Constructor Detail |
---|
public LDAPControl(Control control)
control
- The control to use to create this control.public LDAPControl(java.lang.String id, boolean critical, byte[] vals)
id
- The OID for the control.critical
- Indicates whether the control should be marked critical.vals
- The encoded value for the control.Method Detail |
---|
public java.lang.String getID()
public boolean isCritical()
true
if this control is marked critical, or false
if not.public byte[] getValue()
null
if there is none.public final Control toControl()
Control
object.
Control
object for this LDAP control.public static Control[] toControls(LDAPControl[] ldapControls)
ldapControls
- The LDAP controls to be converted.
public static LDAPControl[] toLDAPControls(Control[] controls)
controls
- The controls to be converted.
public LDAPControl duplicate()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |