summary refs log tree commit diff
path: root/crypto/src/asn1/esf/OcspListID.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 12:47:51 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-06-24 12:47:51 +0700
commit3b73fe21b3de97c0df89fe72109c8450b7242fa7 (patch)
tree35bc2dbfb5dc40ec05ea7eb5d3a2481d68432582 /crypto/src/asn1/esf/OcspListID.cs
parentCleanup Platform (diff)
downloadBouncyCastle.NET-ed25519-3b73fe21b3de97c0df89fe72109c8450b7242fa7.tar.xz
Use generics instead of dynamic checks
Diffstat (limited to 'crypto/src/asn1/esf/OcspListID.cs')
-rw-r--r--crypto/src/asn1/esf/OcspListID.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crypto/src/asn1/esf/OcspListID.cs b/crypto/src/asn1/esf/OcspListID.cs
index 1c8edb16b..3918dfd42 100644
--- a/crypto/src/asn1/esf/OcspListID.cs
+++ b/crypto/src/asn1/esf/OcspListID.cs
@@ -1,8 +1,7 @@
 using System;
-using System.Collections;
+using System.Collections.Generic;
 
 using Org.BouncyCastle.Utilities;
-using Org.BouncyCastle.Utilities.Collections;
 
 namespace Org.BouncyCastle.Asn1.Esf
 {
@@ -60,12 +59,10 @@ namespace Org.BouncyCastle.Asn1.Esf
 		}
 
 		public OcspListID(
-			IEnumerable ocspResponses)
+			IEnumerable<OcspResponsesID> ocspResponses)
 		{
 			if (ocspResponses == null)
 				throw new ArgumentNullException("ocspResponses");
-			if (!CollectionUtilities.CheckElementsAreOfType(ocspResponses, typeof(OcspResponsesID)))
-				throw new ArgumentException("Must contain only 'OcspResponsesID' objects", "ocspResponses");
 
 			this.ocspResponses = new DerSequence(
 				Asn1EncodableVector.FromEnumerable(ocspResponses));