diff options
Diffstat (limited to 'crypto/src/asn1/cms/ContentInfo.cs')
-rw-r--r-- | crypto/src/asn1/cms/ContentInfo.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/src/asn1/cms/ContentInfo.cs b/crypto/src/asn1/cms/ContentInfo.cs index b440b06a9..b9e554984 100644 --- a/crypto/src/asn1/cms/ContentInfo.cs +++ b/crypto/src/asn1/cms/ContentInfo.cs @@ -14,10 +14,11 @@ namespace Org.BouncyCastle.Asn1.Cms return new ContentInfo(Asn1Sequence.GetInstance(obj)); } - public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit) - { - return new ContentInfo(Asn1Sequence.GetInstance(obj, isExplicit)); - } + public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit) => + new ContentInfo(Asn1Sequence.GetInstance(obj, isExplicit)); + + public static ContentInfo GetTagged(Asn1TaggedObject taggedObject, bool declaredExplicit) => + new ContentInfo(Asn1Sequence.GetTagged(taggedObject, declaredExplicit)); private readonly DerObjectIdentifier m_contentType; private readonly Asn1Encodable m_content; |