diff options
Diffstat (limited to 'crypto/src/asn1/cmp/PKIFreeText.cs')
-rw-r--r-- | crypto/src/asn1/cmp/PKIFreeText.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/cmp/PKIFreeText.cs b/crypto/src/asn1/cmp/PKIFreeText.cs index e2845c529..81f3e128c 100644 --- a/crypto/src/asn1/cmp/PKIFreeText.cs +++ b/crypto/src/asn1/cmp/PKIFreeText.cs @@ -14,10 +14,8 @@ namespace Org.BouncyCastle.Asn1.Cmp return new PkiFreeText(Asn1Sequence.GetInstance(obj)); } - public static PkiFreeText GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) - { - return new PkiFreeText(Asn1Sequence.GetInstance(taggedObject, declaredExplicit)); - } + public static PkiFreeText GetInstance(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new PkiFreeText(Asn1Sequence.GetInstance(taggedObject, declaredExplicit)); public static PkiFreeText GetOptional(Asn1Encodable element) { @@ -34,6 +32,9 @@ namespace Org.BouncyCastle.Asn1.Cmp return null; } + public static PkiFreeText GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new PkiFreeText(Asn1Sequence.GetTagged(taggedObject, declaredExplicit)); + private readonly Asn1Sequence m_strings; internal PkiFreeText(Asn1Sequence seq) |