Exemplo n.º 1
0
 public CrlValidatedID[] GetCrls()
 {
     CrlValidatedID[] result = new CrlValidatedID[crls.Count];
     for (int i = 0; i < crls.Count; ++i)
     {
         result[i] = CrlValidatedID.GetInstance(crls[i].ToAsn1Object());
     }
     return(result);
 }
Exemplo n.º 2
0
        private CrlListID(
            Asn1Sequence seq)
        {
            if (seq == null)
            {
                throw new ArgumentNullException("seq");
            }
            if (seq.Count != 1)
            {
                throw new ArgumentException("Bad sequence size: " + seq.Count, "seq");
            }

            this.crls = (Asn1Sequence)seq[0].ToAsn1Object();

            foreach (Asn1Encodable ae in this.crls)
            {
                CrlValidatedID.GetInstance(ae.ToAsn1Object());
            }
        }