Esempio n. 1
0
 public ResponseData(
     DerInteger version,
     ResponderID responderID,
     DerGeneralizedTime producedAt,
     Asn1Sequence responses,
     X509Extensions responseExtensions)
 {
     this.version            = version;
     this.responderID        = responderID;
     this.producedAt         = producedAt;
     this.responses          = responses;
     this.responseExtensions = responseExtensions;
 }
Esempio n. 2
0
        private ResponseData(
            Asn1Sequence seq)
        {
            int index = 0;

            Asn1Encodable enc = seq[0];

            if (enc is Asn1TaggedObject)
            {
                Asn1TaggedObject o = (Asn1TaggedObject)enc;

                if (o.TagNo == 0)
                {
                    this.versionPresent = true;
                    this.version        = DerInteger.GetInstance(o, true);
                    index++;
                }
                else
                {
                    this.version = V1;
                }
            }
            else
            {
                this.version = V1;
            }

            this.responderID = ResponderID.GetInstance(seq[index++]);
            this.producedAt  = (DerGeneralizedTime)seq[index++];
            this.responses   = (Asn1Sequence)seq[index++];

            if (seq.Count > index)
            {
                this.responseExtensions = X509Extensions.GetInstance(
                    (Asn1TaggedObject)seq[index], true);
            }
        }