Org.BouncyCastle.Asn1.Cms.CompressedDataParser.GetEncapContentInfo C# (CSharp) Méthode

GetEncapContentInfo() public méthode

public GetEncapContentInfo ( ) : ContentInfoParser
Résultat ContentInfoParser
		public ContentInfoParser GetEncapContentInfo()
		{
			return _encapContentInfo;
		}
	}

Usage Example

		public CmsTypedStream GetContent()
        {
            try
            {
                CompressedDataParser comData = new CompressedDataParser((Asn1SequenceParser)this.contentInfo.GetContent(Asn1Tags.Sequence));
                ContentInfoParser content = comData.GetEncapContentInfo();

                Asn1OctetStringParser bytes = (Asn1OctetStringParser)content.GetContent(Asn1Tags.OctetString);

                return new CmsTypedStream(content.ContentType.ToString(), new ZInputStream(bytes.GetOctetStream()));
            }
            catch (IOException e)
            {
                throw new CmsException("IOException reading compressed content.", e);
            }
        }
All Usage Examples Of Org.BouncyCastle.Asn1.Cms.CompressedDataParser::GetEncapContentInfo