private AttributeCertificateInfo(
            Asn1Sequence seq)
        {
            if (seq.Count < 7 || seq.Count > 9)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count);
            }

            this.version                = DerInteger.GetInstance(seq[0]);
            this.holder                 = Holder.GetInstance(seq[1]);
            this.issuer                 = AttCertIssuer.GetInstance(seq[2]);
            this.signature              = AlgorithmIdentifier.GetInstance(seq[3]);
            this.serialNumber           = DerInteger.GetInstance(seq[4]);
            this.attrCertValidityPeriod = AttCertValidityPeriod.GetInstance(seq[5]);
            this.attributes             = Asn1Sequence.GetInstance(seq[6]);

            for (int i = 7; i < seq.Count; i++)
            {
                Asn1Encodable obj = (Asn1Encodable)seq[i];

                if (obj is DerBitString)
                {
                    this.issuerUniqueID = DerBitString.GetInstance(seq[i]);
                }
                else if (obj is Asn1Sequence || obj is X509Extensions)
                {
                    this.extensions = X509Extensions.GetInstance(seq[i]);
                }
            }
        }
 public void SetIssuer(
     AttCertIssuer issuer)
 {
     this.issuer = issuer;
 }