summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1ObjectDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/Asn1ObjectDescriptor.cs')
-rw-r--r--crypto/src/asn1/Asn1ObjectDescriptor.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1ObjectDescriptor.cs b/crypto/src/asn1/Asn1ObjectDescriptor.cs
index 1f33eeac8..3f43a5070 100644
--- a/crypto/src/asn1/Asn1ObjectDescriptor.cs
+++ b/crypto/src/asn1/Asn1ObjectDescriptor.cs
@@ -92,6 +92,11 @@ namespace Org.BouncyCastle.Asn1
             return null;
         }
 
+        public static Asn1ObjectDescriptor GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit)
+        {
+            return (Asn1ObjectDescriptor)Meta.Instance.GetTagged(taggedObject, declaredExplicit);
+        }
+
         private readonly DerGraphicString m_baseGraphicString;
 
         public Asn1ObjectDescriptor(DerGraphicString baseGraphicString)