Skip navigation links

Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10667-03


oracle.security.crypto.cms
Interface CMSInputConnector

All Known Implementing Classes:
CMSAuthenticatedDataInputConnector, CMSCompressedDataInputConnector, CMSDigestedDataInputConnector, CMSEncryptedDataInputConnector, CMSEnvelopedDataInputConnector, CMSSignedDataInputConnector

public interface CMSInputConnector

A CMSInputConnector is used in place of a CMSInputStream when reading nested CMS objects.

A CMSInputConnector should be created for the enclosed object, and passed to a CMSInputStream or CMSInputConnector for the enclosing object.

A CMSInputConnector 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.

If the underlying input stream is positioned just at the beginning of the CMS ContentInfo structure, use the CMSInputStream instead.

See Also:
CMSInputStream

Method Summary
 oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
          Used to determine the content type of the enclosed content.
 java.io.InputStream getInputStream()
          Returns the input stream which is governed by this connector.

 

Method Detail

getEnclosedContentType

oracle.security.crypto.asn1.ASN1ObjectID getEnclosedContentType()
                                                                throws java.io.IOException
Used to determine the content type of the enclosed content.
Returns:
The content type of the underlying content.
Throws:
An - I/O error occurred or the input encoding is incorrect.
java.io.IOException

getInputStream

java.io.InputStream getInputStream()
Returns the input stream which is governed by this connector.
Returns:
The underlying input stream.

Skip navigation links

Oracle Fusion Middleware CMS Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10667-03


Copyright © 2005, 2011 , Oracle. All rights reserved.