public CompareRequest(
     LDAPDN entry,
     AttributeValueAssertion ava)
 {
     this.entry = entry;
     this.ava = ava;
 }
Example #2
0
 public CompareRequest(
     LDAPDN entry,
     AttributeValueAssertion ava)
 {
     this.entry = entry;
     this.ava   = ava;
 }
Example #3
0
 public CompareRequest()
 {
     this.entry = null;
     this.ava   = null;
 }
        public override int BerDecode(IAsn1DecodingBuffer buffer, bool explicitTag = true)
        {
            int     allLen = 0;
            Asn1Tag contextTag;

            allLen += TagBerDecode(buffer, out contextTag);

            int valueLen;

            allLen += LengthBerDecode(buffer, out valueLen);

            switch (contextTag.TagValue)
            {
            case 0:
                field0  = new Asn1SetOf <Filter>();
                allLen += field0.BerDecode(buffer, false);
                SetData(1, field0);
                break;

            case 1:
                field1  = new Asn1SetOf <Filter>();
                allLen += field1.BerDecode(buffer, false);
                SetData(2, field1);
                break;

            case 2:
                field2  = new Filter();
                allLen += field2.BerDecode(buffer, false);
                SetData(3, field2);
                break;

            case 3:
                field3  = new AttributeValueAssertion();
                allLen += field3.BerDecode(buffer, false);
                SetData(4, field3);
                break;

            case 4:
                field4  = new SubstringFilter();
                allLen += field4.BerDecode(buffer, false);
                SetData(5, field4);
                break;

            case 5:
                field5  = new AttributeValueAssertion();
                allLen += field5.BerDecode(buffer, false);
                SetData(6, field5);
                break;

            case 6:
                field6  = new AttributeValueAssertion();
                allLen += field6.BerDecode(buffer, false);
                SetData(7, field6);
                break;

            case 7:
                field7  = new AttributeDescription();
                allLen += field7.BerDecode(buffer, false);
                SetData(8, field7);
                break;

            case 8:
                field8  = new AttributeValueAssertion();
                allLen += field8.BerDecode(buffer, false);
                SetData(9, field8);
                break;

            case 9:
                field9  = new MatchingRuleAssertion();
                allLen += field9.BerDecode(buffer, false);
                SetData(10, field9);
                break;

            default:
                throw new Asn1DecodingUnexpectedData(ExceptionMessages.DecodingUnexpectedData + " AuthenticationChoice");
            }
            return(allLen);
        }