Control ::= SEQUENCE { controlType LdapOID, criticality BOOLEAN DEFAULT FALSE, controlValue OCTET STRING OPTIONAL }
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); } }
/// <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); } }
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); } }
/// <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); }
//************************************************************************* // Mutators //************************************************************************* /// <summary> Override add() of Asn1SequenceOf to only accept a Control type.</summary> public void add(RfcControl control) { base.add(control); }
// ************************************************************************* // 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 ; }