summary refs log tree commit diff
path: root/crypto/src/asn1/esf/OtherRevVals.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/esf/OtherRevVals.cs')
-rw-r--r--crypto/src/asn1/esf/OtherRevVals.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/esf/OtherRevVals.cs b/crypto/src/asn1/esf/OtherRevVals.cs
index 6459f0657..84a12e820 100644
--- a/crypto/src/asn1/esf/OtherRevVals.cs
+++ b/crypto/src/asn1/esf/OtherRevVals.cs
@@ -26,10 +26,11 @@ namespace Org.BouncyCastle.Asn1.Esf
             return new OtherRevVals(Asn1Sequence.GetInstance(obj));
         }
 
-        public static OtherRevVals GetInstance(Asn1TaggedObject obj, bool explicitly)
-        {
-            return new OtherRevVals(Asn1Sequence.GetInstance(obj, explicitly));
-        }
+        public static OtherRevVals GetInstance(Asn1TaggedObject obj, bool explicitly) =>
+            new OtherRevVals(Asn1Sequence.GetInstance(obj, explicitly));
+
+        public static OtherRevVals GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            new OtherRevVals(Asn1Sequence.GetTagged(taggedObject, declaredExplicit));
 
         private readonly DerObjectIdentifier m_otherRevValType;
         private readonly Asn1Encodable m_otherRevVals;