Class CMSContentInfoParser

java.lang.Object
org.bouncycastle.cms.CMSContentInfoParser
Direct Known Subclasses:
CMSAuthenticatedDataParser, CMSAuthEnvelopedDataParser, CMSCompressedDataParser, CMSEnvelopedDataParser, CMSSignedDataParser, CMSTimeStampedDataParser

public class CMSContentInfoParser extends Object
  • Field Details

    • _contentInfo

      protected org.bouncycastle.asn1.cms.ContentInfoParser _contentInfo
    • _data

      protected InputStream _data
  • Constructor Details

  • Method Details

    • isBEREncoded

      public boolean isBEREncoded()
      Return true if the outer ContentInfo SEQUENCE of the stream used the indefinite-length (BER) method, false if it carried a definite length (DL/DER). Wire encodings that need to be reproduced or canonicalised exactly (e.g. ETSI archive-time-stamp imprints over the original coding) can use this to learn the original framing without a second pass over the data (see github #1983).
      Returns:
      true for an indefinite-length (BER) ContentInfo, false otherwise.
    • close

      public void close() throws IOException
      Close the underlying data stream.
      Throws:
      IOException - if the close fails.