Oracle Security Developer Tools CMS Java API Reference
10g Release 2 (10.1.2.0.2)

B15564-01


oracle.security.crypto.cms
Class CMSCompressedDataInputConnector

java.lang.Object
  extended byoracle.security.crypto.cms.CMSCompressedDataInputConnector

All Implemented Interfaces:
CMSInputConnector

public class CMSCompressedDataInputConnector
extends java.lang.Object
implements CMSInputConnector

A CMSCompressedDataInputConnector is used in place of a CMSCompressedDataInputStream when reading nested CMS objects containing compressed-data structures.

A CMSCompressedDataInputConnector is essentially a input stream filter that unwraps the CMS compressed-data structure from the data read in. A CMSCompressedDataInputConnector expects the Content field of the CMS ContentInfo structure i.e. the underlying input stream must be positioned just after the explicit [0] tag wrapper.

See Also:
CMSInputConnector, CMSCompressedDataInputStream

Constructor Summary
CMSCompressedDataInputConnector(CMSInputConnector conn)
Creates a CMSCompressedDataInputConnector.
CMSCompressedDataInputConnector(java.io.InputStream in)
Creates a CMSCompressedDataInputConnector.

Method Summary
ASN1ObjectID getEnclosedContentType()
Returns the content type of the digested data.
java.io.InputStream getInputStream()
Returns the input stream governing this connector.

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CMSCompressedDataInputConnector

public CMSCompressedDataInputConnector(java.io.InputStream in)
Creates a CMSCompressedDataInputConnector.
Parameters:
in - The underlying input stream.

CMSCompressedDataInputConnector

public CMSCompressedDataInputConnector(CMSInputConnector conn)
Creates a CMSCompressedDataInputConnector.
Parameters:
conn - The underlying input connector.

Method Detail

getEnclosedContentType

public ASN1ObjectID getEnclosedContentType()
                                    throws java.io.IOException
Returns the content type of the digested data.
Specified by:
getEnclosedContentType in interface CMSInputConnector
Returns:
The content type identifier.
Throws:
java.io.IOException - An I/O error occurs or the input encoding is incorrect.

getInputStream

public java.io.InputStream getInputStream()
Returns the input stream governing this connector.
Specified by:
getInputStream in interface CMSInputConnector
Returns:
The underlying input stream.

Oracle Security Developer Tools CMS Java API Reference
10g Release 2 (10.1.2.0.2)

B15564-01


Copyright © 2005 , Oracle. All rights reserved.