public OcspResponsesID[] GetOcspResponses() { OcspResponsesID[] result = new OcspResponsesID[ocspResponses.Count]; for (int i = 0; i < ocspResponses.Count; ++i) { result[i] = OcspResponsesID.GetInstance(ocspResponses[i].ToAsn1Object()); } return(result); }
private OcspListID( Asn1Sequence seq) { if (seq == null) { throw new ArgumentNullException("seq"); } if (seq.Count != 1) { throw new ArgumentException("Bad sequence size: " + seq.Count, "seq"); } this.ocspResponses = (Asn1Sequence)seq[0].ToAsn1Object(); foreach (Asn1Encodable ae in this.ocspResponses) { OcspResponsesID.GetInstance(ae.ToAsn1Object()); } }