Class CMSContentInfoParser

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.bouncycastle.asn1.cms.ContentInfoParser _contentInfo  
      protected java.io.InputStream _data  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CMSContentInfoParser​(java.io.InputStream data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the underlying data stream.
      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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _contentInfo

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

        protected java.io.InputStream _data
    • Constructor Detail

      • CMSContentInfoParser

        protected CMSContentInfoParser​(java.io.InputStream data)
                                throws CMSException
        Throws:
        CMSException
    • Method Detail

      • 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 java.io.IOException
        Close the underlying data stream.
        Throws:
        java.io.IOException - if the close fails.