RFC 3126: 4.2.2 Complete Revocation Refs Attribute Definition OcspResponsesID ::= SEQUENCE { ocspIdentifier OcspIdentifier, ocspRepHash OtherHash OPTIONAL }
Inheritance: Asn1Encodable
Example #1
0
 private OcspListID(Asn1Sequence seq)
 {
     //IL_000e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0037: Unknown result type (might be due to invalid IL or missing references)
     if (seq == null)
     {
         throw new ArgumentNullException("seq");
     }
     if (seq.Count != 1)
     {
         throw new ArgumentException(string.Concat((object)"Bad sequence size: ", (object)seq.Count), "seq");
     }
     ocspResponses = (Asn1Sequence)seq[0].ToAsn1Object();
     global::System.Collections.IEnumerator enumerator = ocspResponses.GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current();
             OcspResponsesID.GetInstance(asn1Encodable.ToAsn1Object());
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
 }
Example #2
0
 public OcspResponsesID[] GetOcspResponses()
 {
     OcspResponsesID[] array = new OcspResponsesID[ocspResponses.Count];
     for (int i = 0; i < ocspResponses.Count; i++)
     {
         array[i] = OcspResponsesID.GetInstance(ocspResponses[i].ToAsn1Object());
     }
     return(array);
 }
Example #3
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;
		}
Example #4
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);
 }
Example #5
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 asn1Encodable in this.ocspResponses)
     {
         OcspResponsesID.GetInstance(asn1Encodable.ToAsn1Object());
     }
 }
Example #6
0
		/// <summary>The default constructor for OCSPRef.</summary>
		/// <remarks>The default constructor for OCSPRef.</remarks>
		public OCSPRef(OcspResponsesID ocsp, bool matchOnlyBasicOCSPResponse) : this(ocsp
			.OcspRepHash.HashAlgorithm.ObjectID.Id, ocsp.OcspRepHash
			.GetHashValue(), matchOnlyBasicOCSPResponse)
		{
		}