private CrlOcspRef(Asn1Sequence seq) { if (seq == null) { throw new ArgumentNullException("seq"); } foreach (Asn1TaggedObject item in seq) { Asn1Object @object = item.GetObject(); switch (item.TagNo) { case 0: crlids = CrlListID.GetInstance(@object); break; case 1: ocspids = OcspListID.GetInstance(@object); break; case 2: otherRev = OtherRevRefs.GetInstance(@object); break; default: throw new ArgumentException("Illegal tag in CrlOcspRef", "seq"); } } }
public CrlOcspRef(CrlListID crlids, OcspListID ocspids, OtherRevRefs otherRev) { this.crlids = crlids; this.ocspids = ocspids; this.otherRev = otherRev; }