summary refs log tree commit diff
path: root/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs')
-rw-r--r--crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs9
1 files changed, 2 insertions, 7 deletions
diff --git a/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs b/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
index 0348b0916..e2de8882d 100644
--- a/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
+++ b/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
@@ -70,14 +70,9 @@ namespace Org.BouncyCastle.Asn1.IsisMtt.Ocsp
             throw new ArgumentException("unknown object in factory: " + Platform.GetTypeName(obj), "obj");
 		}
 
-		public static RequestedCertificate GetInstance(
-			Asn1TaggedObject	obj,
-			bool				isExplicit)
+		public static RequestedCertificate GetInstance(Asn1TaggedObject obj, bool isExplicit)
 		{
-			if (!isExplicit)
-				throw new ArgumentException("choice item must be explicitly tagged");
-
-			return GetInstance(obj.GetObject());
+			return Asn1Utilities.GetInstanceFromChoice(obj, isExplicit, GetInstance);
 		}
 
 		private RequestedCertificate(