Class CMSContentInfoParser
java.lang.Object
org.bouncycastle.cms.CMSContentInfoParser
- Direct Known Subclasses:
CMSAuthenticatedDataParser, CMSAuthEnvelopedDataParser, CMSCompressedDataParser, CMSEnvelopedDataParser, CMSSignedDataParser, CMSTimeStampedDataParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.bouncycastle.asn1.cms.ContentInfoParserprotected InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the underlying data stream.booleanReturn true if the outer ContentInfo SEQUENCE of the stream used the indefinite-length (BER) method, false if it carried a definite length (DL/DER).
-
Field Details
-
_contentInfo
protected org.bouncycastle.asn1.cms.ContentInfoParser _contentInfo -
_data
-
-
Constructor Details
-
CMSContentInfoParser
- Throws:
CMSException
-
-
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
Close the underlying data stream.- Throws:
IOException- if the close fails.
-