diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 22:18:00 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-07-01 22:18:00 +0700 |
commit | 4e2bffacaddd47ffb9926dfc28f1e9725c9c929c (patch) | |
tree | e822d81703145f2a05029008f679751407caf9c5 /crypto/src/asn1/x509/sigi/NameOrPseudonym.cs | |
parent | Mark public sequence constructor Obsolete (diff) | |
download | BouncyCastle.NET-ed25519-master.tar.xz |
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/x509/sigi/NameOrPseudonym.cs | 10 |
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; |