diff options
Diffstat (limited to 'crypto/src/asn1/x500/DirectoryString.cs')
-rw-r--r-- | crypto/src/asn1/x500/DirectoryString.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/crypto/src/asn1/x500/DirectoryString.cs b/crypto/src/asn1/x500/DirectoryString.cs index 154e4940e..a04ed0056 100644 --- a/crypto/src/asn1/x500/DirectoryString.cs +++ b/crypto/src/asn1/x500/DirectoryString.cs @@ -29,12 +29,13 @@ namespace Org.BouncyCastle.Asn1.X500 throw new ArgumentException("unknown object in factory: " + Platform.GetTypeName(obj), "obj"); } - public static DirectoryString GetInstance(Asn1TaggedObject obj, bool isExplicit) - { - return Asn1Utilities.GetInstanceFromChoice(obj, isExplicit, GetInstance); - } + public static DirectoryString GetInstance(Asn1TaggedObject obj, bool isExplicit) => + Asn1Utilities.GetInstanceChoice(obj, isExplicit, GetInstance); - private DirectoryString( + public static DirectoryString GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + Asn1Utilities.GetTaggedChoice(taggedObject, declaredExplicit, GetInstance); + + private DirectoryString( DerStringBase str) { this.str = str; |