/// <summary> Constructs an extended request. /// /// </summary> /// <param name="requestName">The OID for this extended operation. /// </param> /// <param name="requestValue">An optional request value. /// </param> public RfcExtendedRequest(RfcLdapOID requestName, Asn1OctetString requestValue):base(2) { add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_NAME), requestName, false)); if (requestValue != null) add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_VALUE), requestValue, false)); return ; }
/// <summary> /// Constructs an extended request. /// </summary> /// <param name="requestName"> /// The OID for this extended operation. /// </param> /// <param name="requestValue"> /// An optional request value. /// </param> public RfcExtendedRequest(RfcLdapOID requestName, Asn1OctetString requestValue) : base(2) { add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_NAME), requestName, false)); if (requestValue != null) { add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_VALUE), requestValue, false)); } }
/// <summary> /// Note: criticality is only added if true, as per RFC 2251 sec 5.1 part /// (4): If a value of a type is its default value, it MUST be /// absent. /// </summary> public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality, Asn1OctetString controlValue) : base(3) { add(controlType); if (criticality.booleanValue() == true) add(criticality); if (controlValue != null) add(controlValue); }
/// <summary> /// Note: criticality is only added if true, as per RFC 2251 sec 5.1 part /// (4): If a value of a type is its default value, it MUST be /// absent. /// </summary> public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality, Asn1OctetString controlValue) : base(3) { add(controlType); if (criticality.booleanValue() == true) { add(criticality); } if (controlValue != null) { add(controlValue); } }
//************************************************************************* // Constructors for ExtendedRequest //************************************************************************* /// <summary> Constructs an extended request. /// /// </summary> /// <param name="requestName">The OID for this extended operation. /// </param> public RfcExtendedRequest(RfcLdapOID requestName) : this(requestName, null) { }
/// <summary> </summary> public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality) : this(controlType, criticality, null) { }
//************************************************************************* // Constructors for Control //************************************************************************* /// <summary> </summary> public RfcControl(RfcLdapOID controlType) : this(controlType, new Asn1Boolean(false), null) { }
//************************************************************************* // Constructors for ExtendedRequest //************************************************************************* /// <summary> Constructs an extended request. /// /// </summary> /// <param name="requestName">The OID for this extended operation. /// </param> public RfcExtendedRequest(RfcLdapOID requestName) : this(requestName, null) { return ; }
/// <summary> </summary> public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality):this(controlType, criticality, null) { }
//************************************************************************* // Constructors for Control //************************************************************************* /// <summary> </summary> public RfcControl(RfcLdapOID controlType):this(controlType, new Asn1Boolean(false), null) { }