Represents an Ldap Control.
 Control ::= SEQUENCE { controlType             LdapOID, criticality             BOOLEAN DEFAULT FALSE, controlValue            OCTET STRING OPTIONAL } 
Inheritance: Novell.Directory.Ldap.Asn1.Asn1Sequence
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
			}
		}
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
        //*************************************************************************
        // Mutators
        //*************************************************************************

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

        /// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary>
        public void Add(RfcControl control)
        {
            base.Add(control);
        }
Ejemplo n.º 7
0
 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 ;
 }
Ejemplo n.º 8
0
 /// <summary> Create an LdapControl from an existing control.</summary>
 protected internal LdapControl(RfcControl control)
 {
     this.control = control;
     return ;
 }
Ejemplo n.º 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);
		}
Ejemplo n.º 10
0
		//*************************************************************************
		// Mutators
		//*************************************************************************
		
		/// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary>
		public void  add(RfcControl control)
		{
			base.add(control);
		}