|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
oracle.security.crypto.cms.CMSOutputStream
This abstract class is the superclass of all classes that implement an output stream filter for creating CMS Objects. A CMSOutputStream
writes its output in the form of a CMS ContentInfo structure in one pass, eliminating the necessity to accumulate all of the input data before writing any output.
In the case where a CMSOutputConnector
is provided instead of a CMSOutputStream
, only the exposed content i.e. the Content field of the ContentInfo structure minus the explicit [0] tag is written to the underlying output stream.
IMPORTANT: This class generates large CMS Objects more efficiently (Java VM memory usage) than the CMSContentInfo
class.
CMSContentInfo.output(java.io.OutputStream)
, CMSOutputConnector
Field Summary |
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
CMSOutputStream(java.io.OutputStream out) Creates a CMSOutputStream object. |
Method Summary | |
abstract oracle.security.crypto.asn1.ASN1ObjectID |
getExposedContentType() Returns the content type of the data that is output to the underlying output stream. |
abstract void |
terminate() Ensures that the CMS Object has been written completely. |
Methods inherited from class java.io.FilterOutputStream |
close, flush, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CMSOutputStream(java.io.OutputStream out)
CMSOutputStream
object.out
- The underlying output stream.Method Detail |
public abstract oracle.security.crypto.asn1.ASN1ObjectID getExposedContentType()
public abstract void terminate() throws java.io.IOException
Must be called after all the content enclosed by the CMS Object has been written.
java.io.IOException
- An I/O error occurred.
|
Oracle Security Developer Tools CMS Java API Reference 10g (10.1.4.0.1) B28170-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |