Represents an Ldap Control.
 Control ::= SEQUENCE { controlType             LdapOID, criticality             BOOLEAN DEFAULT FALSE, controlValue            OCTET STRING OPTIONAL } 
Inheritance: Novell.Directory.Ldap.Asn1.Asn1Sequence
Exemple #1
0
 public RfcControls(Asn1Decoder dec, System.IO.Stream in_Renamed, int len) : base(dec, in_Renamed, len)
 {
     // Convert each SEQUENCE element to a Control
     for (int i = 0; i < size(); i++)
     {
         RfcControl tempControl = new RfcControl((Asn1Sequence)get_Renamed(i));
         set_Renamed(i, tempControl);
     }
 }
Exemple #2
0
 /// <summary> Constructs a Controls object by decoding it from an InputStream.</summary>
 public RfcControls(IAsn1Decoder dec, Stream inRenamed, int len)
     : base(dec, inRenamed, len)
 {
     // Convert each SEQUENCE element to a Control
     for (var i = 0; i < Size(); i++)
     {
         var tempControl = new RfcControl((Asn1Sequence)get_Renamed(i));
         set_Renamed(i, tempControl);
     }
 }
Exemple #3
0
		public RfcControls(Asn1Decoder dec, System.IO.Stream in_Renamed, int len):base(dec, in_Renamed, len)
		{
			
			// Convert each SEQUENCE element to a Control
			for (int i = 0; i < size(); i++)
			{
				RfcControl tempControl = new RfcControl((Asn1Sequence) get_Renamed(i));
				set_Renamed(i, tempControl);
			}
		}
Exemple #4
0
 /// <summary> Override set() of Asn1SequenceOf to only accept a Control type.</summary>
 public void set_Renamed(int index, RfcControl control)
 {
     base.set_Renamed(index, control);
 }
Exemple #5
0
        //*************************************************************************
        // Mutators
        //*************************************************************************

        /// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary>
        public void add(RfcControl control)
        {
            base.add(control);
        }
Exemple #6
0
        // *************************************************************************
        // Mutators
        // *************************************************************************

        /// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary>
        public void Add(RfcControl control)
        {
            base.Add(control);
        }
 public LdapControl(System.String oid, bool critical, sbyte[] values)
 {
     if ((System.Object) oid == null)
     {
         throw new System.ArgumentException("An OID must be specified");
     }
     if (values == null)
     {
         control = new RfcControl(new RfcLdapOID(oid), new Asn1Boolean(critical));
     }
     else
     {
         control = new RfcControl(new RfcLdapOID(oid), new Asn1Boolean(critical), new Asn1OctetString(values));
     }
     return ;
 }
 /// <summary> Create an LdapControl from an existing control.</summary>
 protected internal LdapControl(RfcControl control)
 {
     this.control = control;
     return ;
 }
Exemple #9
0
		/// <summary> Override set() of Asn1SequenceOf to only accept a Control type.</summary>
		public void  set_Renamed(int index, RfcControl control)
		{
			base.set_Renamed(index, control);
		}
Exemple #10
0
		//*************************************************************************
		// Mutators
		//*************************************************************************
		
		/// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary>
		public void  add(RfcControl control)
		{
			base.add(control);
		}