Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
        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());
            }
        }