Package netscape.ldap.controls
Class LDAPStringControl
java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPStringControl
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
LDAPPasswordExpiredControl,LDAPPasswordExpiringControl
Represents an LDAP v3 server control that contains a string as its
only value. This is to be used as a base class by real such controls.
-
Field Summary
FieldsFields inherited from class netscape.ldap.LDAPControl
m_critical, m_value, MANAGEDSAIT, PWEXPIRED, PWEXPIRING -
Constructor Summary
ConstructorsConstructorDescriptionLDAPStringControl(String oid, boolean critical, byte[] value) Constructs anLDAPStringControlobject, and stores the value as a string. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringparseResponse(LDAPControl[] controls, String type) Parses a response control sent by the server and retrieves a string.Methods inherited from class netscape.ldap.LDAPControl
clone, createControl, flattenBER, getID, getValue, isCritical, lookupControlClass, newInstance, register, toString
-
Field Details
-
m_msg
-
-
Constructor Details
-
LDAPStringControl
LDAPStringControl() -
LDAPStringControl
Constructs anLDAPStringControlobject, and stores the value as a string. To retrieve this string value, usegetMsg().- Parameters:
oid- the oid of this controlcritical-trueif this control is critical to the searchvalue- the value associated with this control- See Also:
-
netscape.ldap.LDAPcontrol
-
-
Method Details
-
parseResponse
Parses a response control sent by the server and retrieves a string.You can get the controls returned by the server by using the
getResponseControlsmethod of theLDAPConnectionclass.- Parameters:
controls- an array ofLDAPControlobjects, representing the controls returned by the server after a search. To get these controls, use thegetResponseControlsmethod of theLDAPConnectionclass.type- the OID of the control to look for- Returns:
- a message string, or null if the server did not return a string.
- See Also:
-