summary refs log tree commit diff
path: root/crypto/src/asn1/x509/sigi/NameOrPseudonym.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 22:18:00 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-07-01 22:18:00 +0700
commit4e2bffacaddd47ffb9926dfc28f1e9725c9c929c (patch)
treee822d81703145f2a05029008f679751407caf9c5 /crypto/src/asn1/x509/sigi/NameOrPseudonym.cs
parentMark public sequence constructor Obsolete (diff)
downloadBouncyCastle.NET-ed25519-master.tar.xz
Refactoring in Asn1.X509.SigI HEAD master
Diffstat (limited to '')
-rw-r--r--crypto/src/asn1/x509/sigi/NameOrPseudonym.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/src/asn1/x509/sigi/NameOrPseudonym.cs b/crypto/src/asn1/x509/sigi/NameOrPseudonym.cs
index c801002d1..7cf2f50f5 100644
--- a/crypto/src/asn1/x509/sigi/NameOrPseudonym.cs
+++ b/crypto/src/asn1/x509/sigi/NameOrPseudonym.cs
@@ -49,7 +49,13 @@ namespace Org.BouncyCastle.Asn1.X509.SigI
             throw new ArgumentException("unknown object in factory: " + Platform.GetTypeName(obj), "obj");
 		}
 
-		/**
+        public static NameOrPseudonym GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetInstanceChoice(taggedObject, declaredExplicit, GetInstance);
+
+        public static NameOrPseudonym GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) =>
+            Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance);
+
+        /**
 		* Constructor from DERString.
 		* <p/>
 		* The sequence is of type NameOrPseudonym:
@@ -65,7 +71,7 @@ namespace Org.BouncyCastle.Asn1.X509.SigI
 		* </pre>
 		* @param pseudonym pseudonym value to use.
 		*/
-		public NameOrPseudonym(
+        public NameOrPseudonym(
 			DirectoryString pseudonym)
 		{
 			this.pseudonym = pseudonym;