/// <summary> /// Constructs an LdapExtendedRequest. /// </summary> /// <param name="op"> /// The object which contains (1) an identifier of an extended /// operation which should be recognized by the particular Ldap /// server this client is connected to, and (2) an operation- /// specific sequence of octet strings or BER-encoded values. /// </param> /// <param name="cont"> /// Any controls that apply to the extended request /// or null if none. /// </param> public LdapExtendedRequest(LdapExtendedOperation op, LdapControl[] cont) : base( EXTENDED_REQUEST, new RfcExtendedRequest(new RfcLdapOID(op.getID()), op.getValue() != null ? new Asn1OctetString(op.getValue()) : null), cont) { }
/// <summary> Constructs an LdapExtendedRequest. /// /// </summary> /// <param name="op"> The object which contains (1) an identifier of an extended /// operation which should be recognized by the particular Ldap /// server this client is connected to, and (2) an operation- /// specific sequence of octet strings or BER-encoded values. /// /// </param> /// <param name="cont">Any controls that apply to the extended request /// or null if none. /// </param> public LdapExtendedRequest(LdapExtendedOperation op, LdapControl[] cont) : base(LdapMessage.EXTENDED_REQUEST, new RfcExtendedRequest(new RfcLdapOID(op.getID()), (op.getValue() != null)?new Asn1OctetString(op.getValue()):null), cont) { return ; }