public class CMSCompressedDataOutputConnector extends java.lang.Object implements CMSOutputConnector
CMSCompressedDataOutputConnector
is used in place of a CMSCompressedDataOutputStream
when constructing nested CMS objects containing compressed-data
structures.
A CMSCompressedDataOutputConnector
is essentially an output stream filter that wraps the data written to it within a CMS compressed-data
structure. Only the Content field of the CMS ContentInfo structure minus the the explicit [0] tag wrapper is written to the underlying output stream.
CMSOutputConnector
, CMSCompressedDataOutputStream
Constructor and Description |
---|
CMSCompressedDataOutputConnector(CMSOutputConnector conn, oracle.security.crypto.core.AlgorithmIdentifier compressionAlgID, oracle.security.crypto.asn1.ASN1ObjectID contentType)
Creates a
CMSCompressedDataOutputConnector . |
CMSCompressedDataOutputConnector(java.io.OutputStream out, oracle.security.crypto.core.AlgorithmIdentifier compressionAlgID, oracle.security.crypto.asn1.ASN1ObjectID contentType)
Creates a
CMSCompressedDataOutputConnector . |
Modifier and Type | Method and Description |
---|---|
oracle.security.crypto.asn1.ASN1ObjectID |
getExposedContentType()
Returns the content type of the data that is output to the underlying output stream.
|
java.io.OutputStream |
getOutputStream()
Returns the output stream that is governed by this connector.
|
public CMSCompressedDataOutputConnector(java.io.OutputStream out, oracle.security.crypto.core.AlgorithmIdentifier compressionAlgID, oracle.security.crypto.asn1.ASN1ObjectID contentType) throws oracle.security.crypto.core.AlgorithmIdentifierException
CMSCompressedDataOutputConnector
.out
- The underlying output stream.compressionAlgID
- The compression algorithm identifier.contentType
- The content type of the enclosing content.oracle.security.crypto.core.AlgorithmIdentifierException
- Compression algorithm is not supported.public CMSCompressedDataOutputConnector(CMSOutputConnector conn, oracle.security.crypto.core.AlgorithmIdentifier compressionAlgID, oracle.security.crypto.asn1.ASN1ObjectID contentType) throws oracle.security.crypto.core.AlgorithmIdentifierException
CMSCompressedDataOutputConnector
.conn
- The underlying output connector.compressionAlgID
- The compression algorithm identifier.contentType
- The content type of the enclosing content.writeEContentInfo
- true
if the enclosed content must be written to the output stream; false
otherwise.oracle.security.crypto.core.AlgorithmIdentifierException
- Compression algorithm is not supported.public oracle.security.crypto.asn1.ASN1ObjectID getExposedContentType()
getExposedContentType
in interface CMSOutputConnector
public java.io.OutputStream getOutputStream()
getOutputStream
in interface CMSOutputConnector