Package org.bouncycastle.cms
Class CMSContentInfoParser
- java.lang.Object
-
- org.bouncycastle.cms.CMSContentInfoParser
-
- Direct Known Subclasses:
CMSAuthenticatedDataParser,CMSAuthEnvelopedDataParser,CMSCompressedDataParser,CMSEnvelopedDataParser,CMSSignedDataParser,CMSTimeStampedDataParser
public class CMSContentInfoParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.bouncycastle.asn1.cms.ContentInfoParser_contentInfoprotected java.io.InputStream_data
-
Constructor Summary
Constructors Modifier Constructor Description protectedCMSContentInfoParser(java.io.InputStream data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the underlying data stream.booleanisBEREncoded()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).
-
-
-
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.IOExceptionClose the underlying data stream.- Throws:
java.io.IOException- if the close fails.
-
-