summary refs log tree commit diff
path: root/crypto/src/asn1/DerUTF8String.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DerUTF8String.cs')
-rw-r--r--crypto/src/asn1/DerUTF8String.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/src/asn1/DerUTF8String.cs b/crypto/src/asn1/DerUTF8String.cs
index 9472f5082..9bee962e7 100644
--- a/crypto/src/asn1/DerUTF8String.cs
+++ b/crypto/src/asn1/DerUTF8String.cs
@@ -116,6 +116,16 @@ namespace Org.BouncyCastle.Asn1
             return new PrimitiveEncoding(tagClass, tagNo, m_contents);
         }
 
+        internal sealed override DerEncoding GetEncodingDer()
+        {
+            return new PrimitiveDerEncoding(Asn1Tags.Universal, Asn1Tags.Utf8String, m_contents);
+        }
+
+        internal sealed override DerEncoding GetEncodingDerImplicit(int tagClass, int tagNo)
+        {
+            return new PrimitiveDerEncoding(tagClass, tagNo, m_contents);
+        }
+
         internal static DerUtf8String CreatePrimitive(byte[] contents)
         {
             return new DerUtf8String(contents, false);