summary refs log tree commit diff
path: root/crypto/src/asn1/isismtt
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/isismtt')
-rw-r--r--crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs b/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
index e2de8882d..7aaa9601c 100644
--- a/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
+++ b/crypto/src/asn1/isismtt/ocsp/RequestedCertificate.cs
@@ -70,10 +70,11 @@ 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)
-		{
-			return Asn1Utilities.GetInstanceFromChoice(obj, isExplicit, GetInstance);
-		}
+		public static RequestedCertificate GetInstance(Asn1TaggedObject obj, bool isExplicit) =>
+			Asn1Utilities.GetInstanceChoice(obj, isExplicit, GetInstance);
+
+        public static RequestedCertificate GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance);
 
 		private RequestedCertificate(
 			Asn1TaggedObject tagged)