RFC 3126: 4.2.2 Complete Revocation Refs Attribute Definition CrlValidatedID ::= SEQUENCE { crlHash OtherHash, crlIdentifier CrlIdentifier OPTIONAL}
Inheritance: Asn1Encodable
Esempio n. 1
0
 private CrlListID(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");
     }
     crls = (Asn1Sequence)seq[0].ToAsn1Object();
     global::System.Collections.IEnumerator enumerator = crls.GetEnumerator();
     try
     {
         while (enumerator.MoveNext())
         {
             Asn1Encodable asn1Encodable = (Asn1Encodable)enumerator.get_Current();
             CrlValidatedID.GetInstance(asn1Encodable.ToAsn1Object());
         }
     }
     finally
     {
         global::System.IDisposable disposable = enumerator as global::System.IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
     }
 }
Esempio n. 2
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);
 }
Esempio n. 3
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;
		}
Esempio n. 4
0
 public CrlValidatedID[] GetCrls()
 {
     CrlValidatedID[] array = new CrlValidatedID[this.crls.Count];
     for (int i = 0; i < this.crls.Count; i++)
     {
         array[i] = CrlValidatedID.GetInstance(this.crls[i].ToAsn1Object());
     }
     return(array);
 }
Esempio n. 5
0
		/// <summary>The default constructor for CRLRef.</summary>
		/// <remarks>The default constructor for CRLRef.</remarks>
		/// <param name="cmsRef"></param>
		/// <exception cref="Sharpen.ParseException">Sharpen.ParseException</exception>
		public CRLRef(CrlValidatedID cmsRef)
		{
			try
			{
				crlIssuer = cmsRef.CrlIdentifier.CrlIssuer;
				crlIssuedTime = cmsRef.CrlIdentifier.CrlIssuedTime;
				crlNumber = cmsRef.CrlIdentifier.CrlNumber;
				algorithm = cmsRef.CrlHash.HashAlgorithm.ObjectID.Id;
				digestValue = cmsRef.CrlHash.GetHashValue();
			}
			catch (ParseException ex)
			{
				throw new RuntimeException(ex);
			}
		}
Esempio n. 6
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 asn1Encodable in this.crls)
     {
         CrlValidatedID.GetInstance(asn1Encodable.ToAsn1Object());
     }
 }