Class LDAPStringControl

java.lang.Object
netscape.ldap.LDAPControl
netscape.ldap.controls.LDAPStringControl
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
LDAPPasswordExpiredControl, LDAPPasswordExpiringControl

abstract class LDAPStringControl extends LDAPControl
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 Details

    • m_msg

      protected String m_msg
  • Constructor Details

    • LDAPStringControl

      LDAPStringControl()
    • LDAPStringControl

      public LDAPStringControl(String oid, boolean critical, byte[] value)
      Constructs an LDAPStringControl object, and stores the value as a string. To retrieve this string value, use getMsg().
      Parameters:
      oid - the oid of this control
      critical - true if this control is critical to the search
      value - the value associated with this control
      See Also:
      • invalid reference
        netscape.ldap.LDAPcontrol
  • Method Details

    • parseResponse

      public static String parseResponse(LDAPControl[] controls, String type)
      Parses a response control sent by the server and retrieves a string.

      You can get the controls returned by the server by using the getResponseControls method of the LDAPConnection class.

      Parameters:
      controls - an array of LDAPControl objects, representing the controls returned by the server after a search. To get these controls, use the getResponseControls method of the LDAPConnection class.
      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: